Logo

Javascript Questions Set 244:

Quiz Mode

The maximum number of global symbols a module can define is ____________

1
2
3
4

Solution:

 Which of the following framework was used by Google for Gmail? 

1
2
3
4

Solution:

What is the return type of the hash property of a URL?

1
2
3
4

Solution:

Which jQuery method is used to combine the fadeIn() and fadeOut() methods?

1
2
3
4

Solution:

What will be the output:

function number(num) { var x = num; var t =x.split('').reverse().join(''); return t; } console.log(number('1269678'))

1
2
3
4

Solution:

What is the output of the following code?

const elements = ['Fire', 'Air', 'Water', 'soil'];

console.log(elements.join());

1
2
3
4

Solution:

What will be the output of the following code:

function random(str)  { return str.split('').sort().join('');  } console.log(random("Welcome ABEKUS"));

1
2
3
4

Solution:

What is the behavior of the interpreter when an exception is thrown in a jump statement?

1
2
3
4

Solution:

What will be the output of the following JavaScript code snippet?

1
2
3
4

Solution:

With respect to the following code:


<div id="demo">Some Content</div>

<script>

//Module 1

var p = document.createElement("p");

var node = document.createTextNode("Line of text");

//Module 2

p.appendChild(node);

var div = document.getElementById("demo");

//Module 3

div.appendChild(p);

</script>

Which of the following is correct?

1
2
3
4

Solution: