FREE JavaScript Coding for Kids Questions and Answers
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.
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!"
How do you declare a variable in JavaScript?
Correct!
Wrong!
The proper way to declare a JavaScript variable is "var carName;".
Which HTML element should the JavaScript be placed in?
Correct!
Wrong!
In JavaScript, how do you insert a comment?
Correct!
Wrong!
You can leave a comment by typing "//This is a comment"
What language determines a website's behavior?
Correct!
Wrong!
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.