As you know, JavaScript is a very popular programming language used to create interactive websites. Also, much test automation is also written in JavaScript. Attempt this quiz to find out how well you know JavaScript and see how many questions you are able to answer correctly.
1. In javascript, what happens when two functions call each other recursively?
2. What is the result of applying an arithmetic operator on a string?
3. How do you reduce the time it takes a javascript switch statement to execute?
4. What is the difference between == and === operators in javascript?
5. What happens when a javascript function is called with extra parameters? For example, the function is defined with 2 parameters but is invoked with 3 parameters.
6. Which javascript loop runs at least once?
7. What is the result of running the following loop?
var i=1;
for(;;) {
if (i>5) {break;}
document.write(++i);
}
8. In javascript, what is the preferred way of creating just one instance of a user-defined object?
9. The concat method does which of the following tasks in javascript?
10. In javascript, the elements of an associative array can be referred by their number index. True or false?
Please now go to the Part 2 of this JavaScript Quiz by clicking here.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.