What will be the output?
console.log(NaN === NaN);
How many ways are available to display data in JavaScript?
The escape sequence '\f' stands for
var foo = function foo() {
console.log(foo === foo);
};
foo();
What does the 'this' keyword refer to?
What will be the output of the following JavaScript code?
var a = 10;
do {
a += 1;
console.log(a);
} while (a < 5);
What does the application layer handle?
What will be the output of the following JavaScript code?
int sum=0;
var arr = [1,5,2,3];
arr.forEach(function myFunction(element)
{
sum= sum+element;
});
document.writeln(sum);
Which API allows scripts in a document from one server to exchange messages with scripts in a document from another server?
What is the output of the following JavaScript code?
<!DOCTYPE html>
<html>
<head>
<title> abekus </title>
</head>
<body>
<p id= "demo"> </p>
<script>
var x = 5 + 15 + "30";
document.getElementById("demo").innerHTML = x;
</script>
</body>
</html>