JavaScript Coding for Kids
What language determines a website's behavior?
Correct!
Wrong!
Which HTML element should the JavaScript be placed in?
Correct!
Wrong!
In javascript, which operator is used to assign a value to a variable?
Correct!
Wrong!
In javascript, the "=" operator is used to assign a value to a variable.
How do you declare a variable in JavaScript?
Correct!
Wrong!
The proper way to declare a JavaScript variable is "var carName;".
What is the correct JavaScript syntax for modifying the HTML element below?
Correct!
Wrong!
To change the content of the HTML element below, use the following JavaScript syntax: document.getElementById("demo").innerHTML = "Hello World!"
In JavaScript, how do you insert a comment?
Correct!
Wrong!
You can leave a comment by typing "//This is a comment"
What is the output of the following program in javascript if the value of x is 40?
Correct!
Wrong!
This is the perfect output value because it is divisible by 10.