Search Header Logo

web 2 JS

Authored by Rajad Shakya

others

Used 5+ times

web 2 JS
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax to declare a variable in JavaScript?

int myVar;
var myVar;
let = myVar;
dim myVar;

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you write a comment in JavaScript?

/* comment */
// comment
# comment

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of: 2 + '2' in JavaScript?

4
'4'
NaN
22

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to define a constant in JavaScript?

let
var
define
const

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does NaN stand for?

Not a Number
No assigned Name
Negative and Null
New assigned Name

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following comparisons is true?

'5' == 5
'5' === 5
5 = '5'
5 != 5

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you define a function in JavaScript?

fun myFunc()
function myFunc() {}
function = myFunc()
def myFunc()

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?