1.
What is the output of the following JavaScript code:
d();
console.log(a);

var a = 'abc';

function d() {
    console.log("called d!");
}
2.
In JavaScript, which of the following statements is used to declare a module in JSON?
3.
The node object creates an event called __________________.
4.
What is the output of the following JavaScript code:
var string1 = ”123”;
var intValue = 123;
alert( string1 + intValue );
5.
In the following JavaScript expression, which of these statements is used to check if pattern matches the text string:
var text = "testing: 1, 2, 3";
var pattern = /d+/g;
6.
Which of these statements is equivalent to the following JavaScript code:
x = ~-y;
w = x = y = z;
q = a?b:c?d:e?f:g;
7.
What is the output of the following JavaScript code:
var a = 5,
    b = 1
var obj = {
    a: 10
}
with(obj) {
    alert(a)
}
8.
What is the output of the following JavaScript code:

var count = 0;
while (count < 10) {
    console.log(count);
    count++;
}
9.
What is the significance of the continue keyword in the following JavaScript code:
while (a != 0) {
    if (a == 1)
        continue;
    else
        a++;
}
10.
What is the significance of the debugger statement in the following JavaScript code:

function f(o) {
    if (o === undefined) debugger;
}