Logo

Javascript Questions Set 138:

Quiz Mode

The datatype of the go() method's parameter is _____.

1
2
3
4

Solution:

Let n = 5;

Let con = !(true && false);

If (con || ++n)

{

        n += 2;

}

console.log(n);

1
2
3
4

Solution:

Output of below code is

<script> 

document.write({}); 

</script> 

1
2
3
4

Solution:

What does the this keyword refer to in an event handler?

1
2
3
4

Solution:

Where do you think the <script> tags should be placed?

1
2
3
4

Solution:

What will be the output of the following JavaScript code?

 

var a=5 , b=1
var obj = { a : 10 }
with(obj)
{
     alert(b)
}

1
2
3
4

Solution:

 What will be the return value of the write() method when the Node cannot write the data immediately and has to buffer it internally? 

1
2
3
4

Solution:

What is the purpose of using the async attribute in the script tag?

1
2
3
4

Solution:

Identify the correct syntax for correctly parsing XML data using Javascript

1
2
3
4

Solution:

What will be the output of the following JavaScript code?

function constfuncs()

{

   var funcs = [];

   for(var i = 0; i < 10; i++)

       funcs[i] = function() { return i; };

   return funcs;

}

var funcs = constfuncs();

funcs[5]()

1
2
3
4

Solution: