Search Header Logo

JS-QUIZ

Authored by Asma Fathima

Information Technology (IT)

Professional Development

Used 6+ times

JS-QUIZ
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to declare a variable in JavaScript?

var

let

const

All of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does typeof null return?

null

object

undefined

string

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to convert a string into an array?



arrayify()

slice()

join()

split()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you write a single-line comment in JavaScript?

// comment

<!-- comment -->

/* comment */

# comment

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will 2 + "2" evaluate to in JavaScript?

4

22

undefined

NaN

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to parse a string into an integer?

parseInt()

parseFloat()

Number()

toInt()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does NaN stand for?

No Argument Needed

Not a Number

Number at Null

Non-Accessible Node

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?