JavaScript Questions

0 votes, 0 avg
434

JavaScript Questions

1 / 15

1. Which is the function used to call a function in every time duration?

2 / 15

2. Which is the correct syntax to call an external JavaScript file in the current HTML document?

3 / 15

3. Which variable is an implicit parameter for every function in javascript?

4 / 15

4. What is the use of the noscript tag in Javascript?

5 / 15

5.

What will happen, if the following JavaScript code is executed? var count =0;
while (count <10) { console.log(count); count++; }

6 / 15

6.  Why event handlers is needed in JS?

7 / 15

7. Which of the following methods is used to access HTML elements using Javascript?

8 / 15

8. Which of the following is not considered as an error in javascript?

9 / 15

9. Which statement creates a new object using the Person constructor?

10 / 15

10. Which of the following is the method used to add an element to the desired location?

11 / 15

11. Which collection object allows unique value to be inserted only once?

12 / 15

12. Why JavaScript Engine is needed?

13 / 15

13. What is the purpose of the Attr object in the HTML DOM ?

14 / 15

14. What will be the output of the following JavaScript code?

let x = "10";
    let y = + x;
    
    document.write(typeof y);

15 / 15

15. Upon encountering empty statements, what does the Javascript Interpreter do?