CoderMantra

Menu
  • Home
  • Quiz
  • How-To
  • Q/A
  • Blog

javascript-exam

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

JavaScript Questions

1 / 15

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

2 / 15

2. Which of the following is the language of javascript?

3 / 15

3. What is the main difference between var and let keywords in JavaScript?

4 / 15

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

var x=12;
var y=8;
var res=eval("x+y");
document.write(res);

5 / 15

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

6 / 15

6.  Where is Client-side JavaScript code is embedded within HTML documents?

7 / 15

7. Which function is used to clear the timer value?

8 / 15

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

const obj1 = {Name: "Hello", Age: 16};
const obj2 = {Name: "Hello", Age: 16};
print(obj1 === obj2);

9 / 15

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

10 / 15

10. When an operator’s value is NULL, the typeof returned by the unary operator is:

11 / 15

11. How to stop an interval timer in Javascript?

12 / 15

12. Which property references the DOM object that dispatched an event?

13 / 15

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

14 / 15

14. 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;
}

15 / 15

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

Your score is

LinkedIn Facebook VKontakte
0%

By Wordpress Quiz plugin

Category

  • AI
  • Assignments
    • C Language Assignments
    • C++ Assignments
    • Java Assignments
    • Python Assignments
  • C Programming
  • c-plus-plus-Assignments
  • C++
  • Core Java
  • Data Structure
  • Data Structure In C++
  • How To
  • Java-Assignments
  • node js questions
  • nodejs assignments
  • nodejs Projects
  • Practice Questions
  • Python Tutorial
  • Python-Assignments
  • Questions
  • Quiz
  • sql-functions
  • SQL-Tutorial
  • Tkinter Tutorial
  • Uncategorized
  • What Is
  • Why

Archives

  • October 2025
  • September 2025
  • July 2025
  • April 2025
  • October 2024
  • September 2024
  • June 2024
  • April 2024
  • May 2023
  • April 2023
  • 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
Binary Search Tree Traversal in Java October 21, 2025
Tree in Data Structure – A Complete Guide with Examples October 3, 2025
What is Generative AI? Explained with Simple Examples. September 25, 2025
Double Linked List in Java. July 15, 2025
Contact Us

info@codermantra.com

admin@codermantra.com

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