Javascript Programming Quiz


Play this Javascript quiz that will help you to excel in Javascript certification exams, placements etc. This Javascript programming quiz consist of 10 questions that you need to solve in 10 minutes. We’ve specially designed this quiz so that you can quickly acquaint to the pattern of questions you can be asked in placement drives, certification exams etc. This Javascript programming test enables you to assess your knowledge of Javascript programming.

Take the Free Practice Test



Javascript MCQs

Practice Javascript MCQ Questions, which will help you to clear your JS related concepts and also helps you to prepare for placements, technical rounds, interviews, competitive exams etc.

Javascript Quiz

Try Free Javascript Quiz, to start a quiz you need to login first, after login you will get start quiz button and then by clicking on that you can start quiz. You will get 10 Minutes to answer all questions.

Javascript Quiz

1. If the operator value is null, then the unary operator returns the typeof _________.

undefined
object
boolean
string

2. JavaScript strings are for ________ text.

storing
manipulating
both a and b
none of the above

3. byte is reserved word in Javascript?

Yes
No
Can be yes or no
Can not say

4. Which operator will return false if two value are equal?

!
!=
!==
All of the above

5. What will be the output of the below code ?

var i=true;
var j=false;
var k=true;
if( i || J && K){
a=10;
b="True";
}
else {
a=20;
b="False";
}
console.log(a+","+b);

10,True
10,False
20,True
20,False

6. What convenience does the following JavaScript code snippet provide?

let suc = function(a) a+1, yes = function() true, no = function() false;

Functional behaviour
Modular behaviour
No convenience
Shorthand expression

7. Array elements can be deleted using the JavaScript operator?

pop
shift
delete
All of the above

8. A __________ will be visible only within a function where it is defined.

global variables
local variable
Both A and B
None of the above

9. What is the output for code A and B?

Code A: 
var x = 10;
y = --x + 1;
alert(y);

Code B:
var x = 10;
y = x-- + 1;
alert(y);

10,10
10,11
11,10
11,11

10. Consider the following JavaScript statement containing regular expressions and check if the pattern matches?

var text = "lestfindcourse: 1, 2, 3"; 
var pattern = /d+/g;

text==pattern
text.equals(pattern)
text.test(pattern)
pattern.test(text)

Results