FREE JavaScript Coding for Kids Questions and Answers

0%

In JavaScript, how do you insert a comment?

Richtig! Falsch!

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

What language determines a website's behavior?

Richtig! Falsch!

What is the correct JavaScript syntax for modifying the HTML element below?

Richtig! Falsch!

To change the content of the HTML element below, use the following JavaScript syntax: document.getElementById("demo").innerHTML = "Hello World!"

In javascript, which operator is used to assign a value to a variable?

Richtig! Falsch!

In javascript, the "=" operator is used to assign a value to a variable.

What is the output of the following program in javascript if the value of x is 40?

Richtig! Falsch!

This is the perfect output value because it is divisible by 10.

How do you declare a variable in JavaScript?

Richtig! Falsch!

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

Which HTML element should the JavaScript be placed in?

Richtig! Falsch!