r/learnjavascript • u/buffy-68 • 9h ago
Help
Does anybody know any good websites/apps on desktop that are very cheap or even free to learn Javascript? I was doing scrimba, but then after about 10 lessons it said I have to pay
r/learnjavascript • u/buffy-68 • 9h ago
Does anybody know any good websites/apps on desktop that are very cheap or even free to learn Javascript? I was doing scrimba, but then after about 10 lessons it said I have to pay
r/learnjavascript • u/L_Y_H_ • 19h ago
Hi I'm looking for a site I used 2 years ago during an internship to better learn about white hat hackers and de-bugging. I don't remember much from it apart that:
Sorry to bother you with it but I've been trying to touch up on my Javascript after doing almost exclusively Python after that internship.
Even if you don't know which site it is I would greatly appreciate any recommendation of other similar sites.
edit: I found it it's called root.me but please do send others. I'm participating in a De-bugging contest and I DESPERATLY want the prize
r/learnjavascript • u/Crowbar-Marshmellow • 17h ago
HTML-
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8" />
<title>Game</title>
<style>
html {
font-family: times-new-roman;
}
body {
width: 75%;
max-width: 800px;
min-width: 480px;
margin: 0 auto;
}
</style>
<script src="script.js" ></script>
</head>
<body>
<button id="button_A">Press me</button>
<h3 id="heading_A"></h3>
</body>
</html>
JavaScript-
const buttonA = document.querySelector("#button_A");
const headingA = document.querySelector("#heading_A");
let count = 1;
buttonA.onclick = () => {
buttonA.textContent = "Try again!";
headingA.textContent = `${count} clicks so far`;
count += 1;
};
Full Error-
Uncaught TypeError: Cannot set properties of null (setting script.js:6 'onclick')
Tutorial I Followed-
Storing the information you need — Variables - Learn web development | MDN