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. Object ......... is the process of converting an objects state to a string from which it can later be restored.

prototype
class
serialization
extensible

2. When will the browser invoke the handler?

Program begins
Any event occurs
Specified event occurs
None of the above

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

!
!=
!==
All of the above

4. Storing a value in a variable is called ?

variable declaration
variable destroyed
variable store
variable initialization

5. What is the code to be used to trim whitespaces?

let trimmed = (l.trim() for (l in lines));
let trimmed = (trim(l));
let trimmed = l.trim();
let trimmed = for(l in lines));

6. What will be the output of the following JavaScript code?

function myfun() 
{
document.getElementById ("demo").innerHTML = Boolean(21 > 15);
}

true
false
error
0

7. JavaScript allows you to work with __________ primitive data types.

1
2
3
4

8. Which of the following string will match the RegEx "((d).(dd))$"?

223.123
22.123
223.12
2.2

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

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

10. What will be the output of the following JavaScript code?

 System.out.println( Pattern.matches("[^lfc]", "letsfind") );

true
false
undefined
l

Results