CoderMantra

Menu
  • Home
  • Quiz
  • How-To
  • Blog

javascript-exam

0 votes, 0 avg
1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

JavaScript Questions

1 / 15

1. What does the Javascript “debugger” statement do?

2 / 15

2. Which is the correct syntax for the function definition?

3 / 15

3. Which object in Javascript doesn’t have a prototype?

4 / 15

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

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

5 / 15

5. Which JavaScript method is used to write into an alert box?

6 / 15

6. What will be the output of the following JavaScript code If these is a p tag element with id="demo"?

var numbers1 = [4, 9];
var numbers2 = numbers1.map(myFunction);
document.getElementById("demo").innerHTML = numbers2;
function myFunction(value, index, array)
{
return value * 2;
}

7 / 15

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

8 / 15

8. What will be the output of the following code snippet?

var a = true + true + true * 3;
print(a)

9 / 15

9.  Why event handlers is needed in JS?

10 / 15

10. What is the central concept of JavaScript memory management?

11 / 15

11. How to stop an interval timer in Javascript?

12 / 15

12. Which handler is triggered when the content of the document in the window is stable and ready for manipulation?

13 / 15

13. Which of the following is not a vaid javascript variable.?

14 / 15

14. Arrays in JavaScript are defined by which of the following statements?

15 / 15

15. JavaScript objects are written with _____.

Your score is

LinkedIn Facebook Twitter VKontakte
0%

Category

  • C Programming
  • Core Java
  • How To
  • Python Tutorial
  • Questions
  • Quiz
  • Tkinter Tutorial
  • What Is

Archives

  • March 2023
  • February 2023
  • May 2022
  • November 2021
  • May 2021
  • March 2021
  • November 2020
  • October 2020
  • August 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • September 2019
  • August 2019
  • May 2019
  • March 2019
  • February 2019
  • January 2019
About CoderMantra

Coder Mantra is a unique e-learning website, offers a tutorial of different popular programming languages with examples. The code on this popular tutorial website is tested and executed.

Latest Posts
Adobe-Xd Questions March 28, 2023
C-Plus-Plus Questions March 21, 2023
Python Questions March 20, 2023
C Questions March 18, 2023
Contact Us

info@codermantra.com

admin@codermantra.com

© 2020 Coder Mantra . All Rights Reserved
About | Privacy Policy | Terms | Contact