JavaScript Quiz

Is this your test? Login to manage it. If not, you can generate an exam just like it.

This is a non-interactive preview of the quiz content.

1.
1 point
How can you add a comment in a JavaScript?
2.
1 point
How to insert a comment that has more than one line?
3.
1 point
What is the correct JavaScript syntax to change the content of the HTML element below?

<p id="demo">This is a demonstration.</p>
4.
1 point
How to write an IF statement in JavaScript?
5.
1 point
How do you round the number 7.25, to the nearest integer?
6.
1 point
How do you create a function in JavaScript?
7.
1 point
How can you detect the client's browser name?
8.
1 point
The external JavaScript file must contain the <script> tag.
9.
1 point
How do you call a function named "myFunction"?
10.
1 point
How do you write "Hello World" in an alert box?
11.
1 point
How to write an IF statement for executing some code if "i" is NOT equal to 5?
12.
1 point
What is the correct syntax for referring to an external script called "xxx.js"?
13.
1 point
Where is the correct place to insert a JavaScript?
14.
1 point
How does a FOR loop start?
15.
1 point
What is the correct JavaScript syntax for opening a new window called "w2" ?
16.
1 point
Inside which HTML element do we put the JavaScript?
17.
1 point
What is the correct way to write a JavaScript array?
18.
1 point
How do you find the number with the highest value of x and y?
19.
1 point
JavaScript is the same as Java.
20.
1 point
How does a WHILE loop start?