Which function calls another function after a time interval?
Which of the following methods loads a new document?
Which of the following is a valid method of the Map object?
What is the output of the following JavaScript code?
const pi = 3.14;
pi = 3;
console.log(pi);
How to get the number of arguments passed to a function?
var str = "Please find where 'find' occurs!";
var pos = str.indexOf("locate");
document.write(pos);
What will be the output of the above code?
What will be the output of the following code?
var globalObject = this;
var foo = (() => this);
console.log(foo() === globalObject);
What will be the output of the following JavaScript code?
function info()
{
int a=1;
int b=2;
return a*b;
}
document.write(info());
What does the navigator.platform
property represent?
Find the output of the following code:
var orc = {
hair: "green",
age: 20,
a: false,
};
orc.hair = "purple";
orc.hair = 1;
orc.hair1 = 2;
document.write(orc.hair);