Javascript Random Quiz For Newbies
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
How do you put a message in the browser's status bar ?
How can you find a client's browser name ?
The external JavaScript file must contain the <script> tag
Inside which HTML element do we put the JavaScript ?
How do you write "Hello World" in an alert box ?
How do you write a conditional statement for executing some code if "i" is equal to 5 ?
How does a "while" loop start ?
Where is the correct place to insert a JavaScript ?
What is the correct JavaScript syntax for opening a new window called "newwindow" ?
What is the correct way to write a JavaScript array ?
How can you add a comment in a JavaScript ?
How do you call a function named "myFunction" ?
What is the correct JavaScript syntax to insert a comment that has more than one line ?
How do you write a conditional statement for executing some code if "i" is NOT equal to 5 ?
How do you round the number 7.25, to the nearest integer ?
How do you find the number with the highest value of x and y ?
How does a "for" loop start ?
What is the correct syntax for referring to an external script called "xxx.js" ?
How do you create a function ?
What is the correct JavaScript syntax to write "Hello World" ?