Logo

Javascript Questions Set 74:

Quiz Mode

Which Node.js module is used for web-based operations?

1
2
3
4

Solution:

Which property is used for cookie manipulation?

1
2
3
4

Solution:

The global object for a new worker is _____.

1
2
3
4

Solution:

Which React hook works as an alternative to useState?

1
2
3
4

Solution:

Which method is used to close a WebSocket connection?

1
2
3
4

Solution:

What is the output of the following code?

console.log(Array.from([1, 2, 3], x => x + x));

1
2
3
4

Solution:

 

What will be the output of the following JavaScript code?



 int a==2;

 int b=4;

 int ans=a+b; 

 print(ans); 

1
2
3
4

Solution:

 What is the function used to deregister event handler ‘f’? 

1
2
3
4

Solution:

What will be the output of the following code?

 

function compare()
{
   int num=2;
   char c=2;
   if(num==c)
       return true;
   else
       return false;
}


1
2
3
4

Solution:

 

What will be the output of the following JavaScript code?


 function height()

 {

     var  height = 123.56; 

     var type = (height>=190) ? "tall" : "short"; 

     return type;

 } 

1
2
3
4

Solution: