Which property is used to access the first child of a node?
When the “end” event fires on EOF when no more data will arrive, which function is called?
What will be the output of the following code?
<p id="abekus"></p>
<script>
var x = "";
document.getElementById("abekus").innerHTML = Boolean(x);
</script>
What is the purpose of the timing
property in the window.performance object?
What is the purpose of the textContent property?
When is a web application said to have good web performance?
What will be the output of the following JavaScript code?
var obj = {
length: 20,
height: 35
}
if ('breadth' in obj === false)
{
obj.breadth = 12;
}
console.log(obj.breadth);
What can be done in order to avoid the creation of global variables in JavaScript?
What will be the output of the following JavaScript code?
<button onclick="myFunction()">Try it</button>
<p id="demo">one</p>
<script>
function myFunction()
{
var str = document.getElementById("demo").innerHTML;
var txt = str.replace("one","two");
document.getElementById("demo").innerHTML = txt;
}
</script>
What does the following code do?
var a = document.getElementById("demo");
var arr = a.childNodes;
for (var x = 0; x < arr.length; x++)
{
arr[x].innerHTML = "new text";
}