Web Quiz

1. Which keyword is used to declare a variable in JavaScript?





2. How do you create a function in JavaScript?





3. What does the `typeof` operator do in JavaScript?





4. How do you write a single-line comment in JavaScript?





5. Which method is used to convert a string to a number in JavaScript?





6. What does `NaN` stand for in JavaScript?





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





8. How do you create an object in JavaScript?





9. What will the following code return: `typeof(null)`?





10. How do you access the first element in an array?





Back To Home