JAVASCRIPT QUIZ
1 .
Which of the following is not a reserved word in JavaScript?

Correct Answer : Option (C)

program
  Show Answer
2 .
What is the result of the below JavaScript code when the functions get called in the order as mentioned?

function first() {
    window.a = 3;
}

function second() {
    alert(a);
}‚Äč

Correct Answer : Option (B)

3
  Show Answer
3 .
Why so JavaScript and Java have similar name?

Correct Answer : Option (B)

JavaScript's syntax is loosely based on Java's
  Show Answer
4 .
How do you create an object in JavaScript?

Correct Answer : Option (D)

All of these work
  Show Answer
5 .
When a user views a page containing a JavaScript program, which machine actually executes the script?

Correct Answer : Option (A)

The User's machine running a Web browser
  Show Answer
6 .
What is the result of the following statement: typeof “x”;

Correct Answer : Option (C)

“string”
  Show Answer
7 .
____ JavaScript is also called client-side JavaScript.

Correct Answer : Option (A)

Navigator
  Show Answer
8 .
Primitive types are passed by :

Correct Answer : Option (B)

Value
  Show Answer
9 .
Which is not a primitive data type in JavaScript?

Correct Answer : Option (D)

character
  Show Answer
10 .
_______ JavaScript is also called server-side JavaScript.

Correct Answer : Option (B)

LiveWire
  Show Answer