HtmlCssMonk

JavaScript QUIZ – EASY (20 Questions)

25
Created by html-css-monk

JavaScript Quiz – Easy 20

Are you Ready ?

Alrighty then.

Good Luck !

Let’s see what you got.

1 / 20

‘&’ Operator is _____

2 / 20

Which of the following is not a valid JavaScript variable name?

3 / 20

JavaScript Code is written inside file having extension __________.

4 / 20

What will be the output of the following JavaScript code?

function equalto() {

int num=10;

if(num===10)

return true;

else

return false;

}

5 / 20

JavaScript entities start with _______ and end with _________.

6 / 20

What is the result of “monk” variable?

var monk;

if (10 > 4) {

monk = true;

} else {

monk = 55;

}

7 / 20

null === undefined

8 / 20

Which is the correct way to write a comment in JavaScript?

9 / 20

What is result of the following expression: var a = “test”; console.log(!!a);

10 / 20

What is the correct JavaScript syntax to write “Hello World”?

11 / 20

How does a “while” loop start?

12 / 20

Which is NOT a way to create a loop in javascript?

13 / 20

What will be the output of the following JavaScript code?

int a=1;

if(a!=null)

return 1;

else

return 0;

14 / 20

String literals are written using:

15 / 20

Local Browser used for validations on the Web Pages uses __________.

16 / 20

In an array object, what is the key of the first value?

17 / 20

How do you check what the type of a value in variable x is?

18 / 20

We cannot Place JS Code in the body tag . Say true/false.

19 / 20

The var statement is used to:

20 / 20

Which is the correct way to write a JavaScript array?

Your score is

The average score is 66%

0%

Exit

About JavaScript Easy Quiz

  • This Basic JavaScript Quiz is designed specially to check your foundational knowledge of JavaScript.
  • You are given 20 MCQ type JavaScript questions in this Quiz.
  • There is no time Limit, so just keep calm and test your Basic avaScript knowledge without any rush !
  •  At the end of the Quiz, your total score will be displayed out of 100% maximum score.
  • You need to score atleast 70% (14 correct answers ) to PASS the Quiz.

Answers will not be shown after the quiz. If you really got what it takes , then learn until you can score 100% without seeing answers.


Do you have the courage to go on !!!!


Leave a Comment

Your email address will not be published. Required fields are marked *