Search Header Logo

Javascript-WED201c

Authored by Ngô Giang Thanh (FE FPTU DN)

Computers

University

Used 4+ times

Javascript-WED201c
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

22 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of console.log(typeof NaN);?

"number"

"undefined"

"string"

"object"

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to declare a variable that cannot be reassigned?

var

let

const

static

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the === operator check?

Value only

Type only

Value and type

Reference only

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a function in JavaScript?

function myFunc() {}

create myFunc() {}

func myFunc() {}

myFunc = function {}

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will console.log(0 == '0'); output?

true

false

undefined

null

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to add an element to the end of an array?

push()

pop()

shift()

unshift()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of console.log(2 + "2");?

4

"22"

22

NaN

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?

Discover more resources for Computers