Search Header Logo

JavaScript (Basic to DOM)

Authored by Zodo axe

Professional Development

Professional Development

Used 2+ times

JavaScript (Basic to DOM)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of var, let, and const uses block scope?

var

let

const

both let and const

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is an example of a JavaScript primitive data type?

Object

Array

Number

Function

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which ways can you concatenate strings?

+ operator

Template literals

concat() method

All of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between == and ===?

Both check type

== does type conversion

=== does type conversion

Both are the same

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax for a template literal?

"Hello ${name}"

'Hello ${name}'

`Hello ${name}`

(Hello ${name})

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is an example of type conversion?

Number("5")

String(123)

Boolean(1)

All of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the full form of NaN?

Not a Null

Not a Number

Null as Number

None of the above

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?