Home HTML CSS JavaScript React Gamedatum.com
× Home HTML CSS JavaScript React Gamedatum.com

JavaScript Quiz


Question 1

What is the correct syntax for referring to an external script called "script.js"?





Question 2

What is the output of the following code?
console.log(2 + "2");





Question 3

Which of the following is not a JavaScript data type?





Question 4

What is the result of the following code?
var x = 10;
console.log(x++);





Question 5

What is the correct way to declare a JavaScript variable?





Your score: /5

Your rating: