Where does the external process save the result of the test?
You can refresh the webpage in JavaScript by using _____
Which of the following is the correct object literal/initialization syntax?
Where should internal scripts be placed to improve the display speed?
What will be the output of the following code?
function compare()
{
int num=2;
if(num === "2")
return true;
else
return false;
}
What will be the output of the following JavaScript code?
var set = new Set();
set.add("one");
set.add("two");
for (let elements of set)
{
document.writeln(elements + " ");
}
While reading cookies, which string keeps a list of name-value pairs separated by semicolons, where name is the name of a cookie and value is its string value?
What will be the output of the following JavaScript code?
<p id="demo">head</p>
<button onclick="myFunction()">Try it</button>
<script>
function myFunction()
{
var x = document.getElementById("demo");
x.innerHTML = x.attributes[0].isId;
}
</script>
Predict the output:
function f() {
return this.a;
}
var g = f.bind({a: 'azerty'});
console.log(g());
var h = g.bind({a: 'yoo'});
var o = {a: 37, f: f, g: g, h: h};
console.log(o.a, o.f(), o.g(), o.h());
What will be the output of the following code?
var student = {
name: "shubham",
rollno: 2,
div: "A",
p: true,
pa1: function() {
document.write("student is present");
},
pa2: function() {
document.write("student is absent");
}
}
if (student.p == true) {
student.pa1();
}
else {
student.pa2();
}