What does the method Performance.now() return?
How do we get a DOM object in JavaScript?
What is the output of the following JavaScript code?
var string2Num = parseInt("123xyz");
What is the return data type of the accept property that belongs to the Input element?
How are objects compared when they are checked with the strict equality operator(===)?
What is the output of the following code?
const obj1 = { property1: '10'};
const obj2 = Object.freeze(obj1);
obj2.property1 = '20';
console.log(obj2.property1);
What is the output of the following code?
const plants = ['broccoli', 'cauliflower', 'cabbage', 'kale', 'tomato'];
const x = plants.pop();
console.log(x);
What will be the output of the following JavaScript code?
emp={id:102,name:"Shyam Kumar",salary:40000}
document.write(emp.id+" "+emp.name+" "+emp.salary);
Which statement(s) should be added to the body of the if statement to turn the red square into a green square when the code executes?
If the user presses “ok” in the dialog box then what will be the output of the following JavaScript code?
function msg()
{
var v= confirm("Are u sure?");
if(v==true)
{
alert("yes");
}
else
{
alert("no");
}
}