Which of the following DOM events are currently supported?
Which of the following is not navigator object property?
What is the output of the following code?
var a = 10;
document.write(a++);
document.write(a);
What is the output of the following JavaScript code?
var a = "GeeksforGeeks";
var x = a.lastIndexOf("G");
document.write(x);
The createStore function creates a Redux store that holds the complete state tree of your app.
Which of the following properties gives access to the JavaScript memory usage data?
The method that can be used to create new properties and also to modify the attributes of existing properties is ___
<p id="my_work"></p>
<script>
function first_function()
{
var first_string = "Tables";
var first_pattern = /tables/i;
var result = first_string.match(first_pattern);
document.getElementById("my_work").innerHTML = result;
}
</script>
What happens in the following code?
<div id="demo">
<p id="p1">Para1</p>
<p id="p2">Para2</p>
</div>
<script>
var parent = document.getElementById("demo");
var child = document.getElementById("p1");
parent.removeChild(child);
</script>