Logo

Javascript Questions Set 20:

Quiz Mode

Array.isArray(undefined);

1
2
3
4

Solution:

 Which is the function used to store a value? 

1
2
3
4

Solution:

Which method is used to begin a path in HTML5 canvas?

1
2
3
4

Solution:

The function that allows a worker to terminate itself is _____.

1
2
3
4

Solution:

Which jQuery UI widget method is used to apply the tabs functionality to an HTML element?

1
2
3
4

Solution:

Guess the output:

console.log(0.1+0.2);

console.log(0.1 + 0.2 == 0.3);

1
2
3
4

Solution:

What is the purpose of the property width belonging to the ImageData element?

1
2
3
4

Solution:

What is the output of the following code?

function bar() {
   return foo;
   foo = 10;
   function foo() {}
   var foo = '11';
}
alert(typeof bar());

1
2
3
4

Solution:

What does the following CSS selector mean?

#log > span

1
2
3
4

Solution:

What will be the output of the following JavaScript code?

<p>1</p>
<p>2</p>
<p>3</p>
function myFunction()
{
   var x = document.getElementsByTagName("P").item(0);
   alert(x.innerHTML);
}

1
2
3
4

Solution: