Logo

Javascript Questions Set 124:

Quiz Mode

_______() method is used to hide HTML elements.

Solution:

Which command is used to spoof the client user agent?

1
2
3
4

Solution:

The method used to add a slider on a webpage is _____.

1
2
3
4

Solution:

 

<p id="my_demo"></p>
<script>
Var arr = ["ten", "twenty", "thirty",];
arr.shift();
document.getElementById("my_demo").innerHTML = arr;
</script>

1
2
3
4

Solution:

What will be the output of the following JavaScript code?

<p id="demo"></p>

<script>

let txt1 = "one";

txt1 += "two";

document.getElementById("demo").innerHTML = txt1;

</script>

1
2
3
4

Solution:

What is the output of the following JavaScript code?


<p id="demo"></p>
<script>
var a = "10"; var b = "10"; var c = a * b;
document.getElementById("demo").innerHTML = c;
</script>

1
2
3
4

Solution:

Which of the following is a way of embedding Client-side JavaScript code within HTML documents?

1
2
3
4

Solution:

var x = new Boolean(false);
if (x) {
 console.log("hope is a good thing")
}else{
 console.log("and no good thing ever dies")
}

1
2
3
4

Solution:

  A JavaScript program developed on a Unix Machine ________ 

1
2
3
4

Solution:

Which API allows scripts in a document from one server to exchange messages with scripts in a document from another server?

1
2
3
4

Solution: