FREE JavaScript Coding for Kids Questions and Answers

0%

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.

Which HTML element should the JavaScript be placed in?

Correct! Wrong!

How do you declare a variable in JavaScript?

Correct! Wrong!

The proper way to declare a JavaScript variable is "var carName;".

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.

In JavaScript, how do you insert a comment?

Correct! Wrong!

You can leave a comment by typing "//This is a comment"

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!"