First Steps in JS

JavaScript Logo

JavaScript Quiz

Answer the questions and then click "Check Answers".

Question 1

Which function is used to ask the user to enter a value?

alert()
prompt()
document.write()

Question 2

What is the result of this code?

var x = 3 + 2;

32
5
6

Question 3

Which keyword is used to make a loop?

if
for
var

Question 4

Which operator means "greater than or equal"?

>
>=
<=