Week 8.2

Week 8.2

Professional Development

10 Qs

quiz-placeholder

Similar activities

Javascript HTML CSS

Javascript HTML CSS

Professional Development

13 Qs

JavasScript

JavasScript

Professional Development

10 Qs

JRDL - JS Arrays and Objects

JRDL - JS Arrays and Objects

6th Grade - Professional Development

12 Qs

Chapter 2 - FSW

Chapter 2 - FSW

Professional Development

10 Qs

PreTrainingJavaScript

PreTrainingJavaScript

Professional Development

9 Qs

Game Tin

Game Tin

Professional Development

5 Qs

javascript2

javascript2

Professional Development

6 Qs

JavaScript

JavaScript

Professional Development

12 Qs

Week 8.2

Week 8.2

Assessment

Quiz

Computers

Professional Development

Medium

Created by

Poul Nichols

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the correct way to declare an array in JavaScript?

var array = {}

var array = []

var array = ()

var array = ""

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How do you access the first element of an array?

array[0]

array[1]

array.first

array.first()

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How do you add an element to the end of an array?

array.add(element)

array.push(element)

array.pop()

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How do you remove the last element from an array?

array.remLast()

array.shift()

array.deleteLast()

array.pop()

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How do you remove one element from a specific index in an array?

array.remove(index)

array.splice(index, 1)

array.slice(index, 1)

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What does the splice() method do?

Joins two arrays together

Prints the contents of an array

Joins two different arrays together into a new array

Adds and Removes elements from anywhere in the array

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What does the slice() method do?

Joins two arrays together

Prints the contents of an array

Selects a portion of an existing array and makes a new array.

Removes elements from an array

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?