To declare a function in JavaScript, which keyword is used?
What will be the output of the following JavaScript code?
var arr=[1,2,3,4];
var rev=arr.reverse();
document.writeln(rev);
What is the use of the <noscript> tag in Javascript?
The process by which the browser decides which objects to trigger event handlers on is called ____________
What will be the output of the following JavaScript code?
document.writeln("<br/>navigator.appVersion: "+navigator.appVersion);
The basic purpose of the toLocaleString() method is to:
What will be the output of the following JavaScript code?
function compare()
{
int num=2;
char b=2;
if(a==b)
return true;
else
return false;
}
Where are objects allocated in an event loop?
What will be the output of the following JavaScript code?
<p id="demo"></p>
<script>
var numbers = [45, 4, 9, 16, 25];
var ans = numbers.reduce(myFunction);
document.getElementById("demo").innerHTML = ans;
function myFunction(total, value, index, array)
{
return total + value;
}
</script>
OnSite
1 Openings
FullTime
Posted 17 days ago