Javascript Random Quiz For Newbies

00
:00

This quiz contains basic questions of Javascript language. It will help you see what you know or do not know about Javascript.

Time to do: 10 mins

Questions: 20

Start Quiz
Back
Next

How does a "while" loop start ?

How can you add a comment in a JavaScript ?

How can you find a client's browser name ?

Inside which HTML element do we put the JavaScript ?

What is the correct way to write a JavaScript array ?

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

How do you call a function named "myFunction" ?

How does a "for" loop start ?

How do you find the number with the highest value of x and y ?

How do you create a function ?

What is the correct JavaScript syntax for opening a new window called "newwindow" ?

How do you write "Hello World" in an alert box ?

What is the correct JavaScript syntax to insert a comment that has more than one line ?

Where is the correct place to insert a JavaScript ?

What is the correct JavaScript syntax to write "Hello World" ?

The external JavaScript file must contain the <script> tag

How do you write a conditional statement for executing some code if "i" is equal to 5 ?

How do you write a conditional statement for executing some code if "i" is NOT equal to 5 ?

How do you put a message in the browser's status bar ?

How do you round the number 7.25, to the nearest integer ?

We use cookies for advertisement solutions and for analytics. By using our site, you acknowledge that you have read and understand our Privacy Policy and Terms of Use.

I understand

Login
OR
Submit