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. The inner frame within a top-level window can be referred to as _____________

parent(parent)
parent.parent
parent*parent
parent/parent

2. Variables are declared with the _______ keyword.

this
int
var
new

3. The ________ operator in JavaScript returns "object" for arrays.

and
or
not
typeof

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

let chaval= (p)=>p+2;
console.log(chaval(2));

4
22
Error: changeVal is not a function
undefined

5. The ________ operator is used to create an instance of an object.

this
self
find
new

6. JavaScript also defines _______ trivial data types.

1
2
3
4

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

< p id="demo">< /p>
< script>
var a = "10";
var b = "10";
var c = a % b;
document.getElementById ("demo").innerHTML = c;
< /script>

true
1
0
false

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

< p id="demo">< /p>
< script>
var a = 20;
var b = "30";
document.getElementById ("demo").innerHTML = x + y;
< /script>

50
20+30
2030
error

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

1
2
3
4

10. Consider the JavaScript code:
Identify the value that will be displayed in alert box at line 5?

function lfc(myname){
console.log(10+"lfc" +12);
}
res=lfc(10);
console.log(res); //line 5

10
10lfc12
undefined
10lfc

Results