Total Questions : 20
Expected Time : 20 Minutes

1. How can you convert a string to a number in JavaScript?

2. Which symbol is used for string concatenation in JavaScript?

3. Which statement is used to skip to the next iteration in a loop?

4. How can you check if a variable is undefined in JavaScript?

5. How do you define a function expression in JavaScript?

6. Which method is used to sort elements in an array in JavaScript?

7. Which symbol is used for comments in JavaScript?

8. Which of the following methods removes the first element from an array?

9. What is the result of the following code? ```javascript console.log(3 * '3');```

10. Which built-in method returns the index within the calling String object of the first occurrence of the specified value?

11. In JavaScript, what does the 'finally' block do in a try-catch-finally statement?

12. Which statement is used to throw a user-defined exception in JavaScript?

13. What does the 'map()' method do to an array in JavaScript?

14. Which statement is used to throw a custom error in JavaScript?

15. In JavaScript, which statement is used to jump out of a loop?

16. How do you check if a variable is an array in JavaScript?

17. How can you determine if a number is an integer in JavaScript?

18. What does the 'async' keyword do in a function declaration?

19. What does NaN stand for?

20. How do you call a function named 'myFunction'?