Logo

Javascript Questions Set 159:

Quiz Mode

What are the events generated by the Node objects called?

1
2
3
4

Solution:

What will be the ultimate element selection method?

1
2
3
4

Solution:

Which HTML attribute is used to specify that the external script is executed when the page has finished parsing?

1
2
3
4

Solution:

In React, what is used to return references to a particular element or component returned by the render() method?

1
2
3
4

Solution:

What function can be used to check whether a value is an integer or not?

1
2
3
4

Solution:

What is the purpose of the timing property in the window.performance object?

1
2
3
4

Solution:

What is the main advantage of using React Hooks?

1
2
3
4

Solution:

What is the purpose of dynamic scoping?

1
2
3
4

Solution:

What will be the output of the following code?

var name = "vinay";

if (name == "vijay") {

document.write("Entry is correct");

}

else {

document.write("Entry is not correct");

}

1
2
3
4

Solution:

 

<script>
function my_function()
{
  var first_string = "Perform very well";
  var first_pattern = new RegExp("es");
  var res = first_pattern.test(first_string);
  document.getElementById("demo").innerHTML = res;
}
</script>

1
2
3
4

Solution: