Which of the following is not a framework?
const array1 = [1, 2, 3];
console.log(array1.includes(2));
What is the purpose of the method getUserData(key)?
Which property of the draggable widget is used so the elements during sorting should move only within its parent element?
What will be the output of the following JavaScript code?
document.writeln("<br/>screen.width: "+screen.width);
Which of the following states the purpose of lazy loading?
Predict the output:
const promise1 = new Promise((resolve, reject) => {
resolve('Success!');
});
promise1.then((value) => {
console.log(value);
});
What happens if a file of JavaScript code is used by multiple pages?
Which of the following statements about event propagation in the DOM are correct?
What will be the output of the following code?
function passfail(name, marks) {
if (marks >= 35) {
return 1;
}
else {
return 0;
}
}
pf = passfail("VINAY", 70);
if (pf == 1) {
document.write("student is passed");
}
else if (pf == 0) {
document.write("student is failed");
}
else {
document.write("INVALID");
}