JS Quiz Full

JS Quiz Full

12th Grade

13 Qs

quiz-placeholder

Similar activities

Arrays Intro

Arrays Intro

9th - 12th Grade

12 Qs

Java Arrays Basic

Java Arrays Basic

10th - 12th Grade

15 Qs

JS Talks, Quiz #5

JS Talks, Quiz #5

1st - 12th Grade

15 Qs

Quiz Javascript Basic Pertemuan 3

Quiz Javascript Basic Pertemuan 3

9th - 12th Grade

10 Qs

Boss Battle (PS: Join Swift Camp)

Boss Battle (PS: Join Swift Camp)

10th - 12th Grade

11 Qs

JRDL - JS Arrays and Objects

JRDL - JS Arrays and Objects

6th Grade - Professional Development

12 Qs

ARRAYS

ARRAYS

11th - 12th Grade

10 Qs

Arrays

Arrays

KG - University

10 Qs

JS Quiz Full

JS Quiz Full

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Raja SK

Used 13+ times

FREE Resource

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

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

Using the 'function' keyword followed by the variable name

Using the 'if' keyword followed by the variable name

Using the 'let', 'const', or 'var' keyword followed by the variable name

Using the 'print' keyword followed by the variable name

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you write a single line comment in JavaScript?

#

/*

//

${}

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

map() will always return an array

True

False

neither True nor False

Both True and False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the option which is not an array method

push()

splice()

pop()

None of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you add a new element (5) to an existing array in JavaScript?

array.insert(5)

array.append(5)

array.add(5)

array.push(5)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

let arr = [1,2,3,4]
Find the number of elements in arr

arr.length()

arr.length

length = arr

length(arr)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you access a property of an object in JavaScript?

By using dot notation or bracket notation

By using arrow notation

By using semicolon notation

By using comma notation

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?