How can we generate random numbers in JavaScript?
Which option provides the most efficient file size reduction?
The error displayed if p is not defined in the following statement:
console.log(p)
Which methods are used to associate further action with a promise that becomes settled?
What will be the output of the following JavaScript code?
string a = ”hi”;
string b =”there”;
alert(a+b);
What will be the output of the following code snippet?
(function(a){ return (function(){ console.log(a); a=6; })() })(21);
Which of the following statements about the useContext
hook is correct?
When will the fourth argument to open() be useful?
What will be the output of the following JavaScript code?
<p id="demo"></p>
<script>
var numbers = [45, 4, 9, 16, 25];
var arr= numbers.every(myFunction);
document.getElementById("demo").innerHTML =arr;
function myFunction(value, index, array)
{
return value > 18;
}
</script>
Which script should be added to use AngularJS directly from a CDN in an HTML document?