Search Header Logo

JS-ES6

Authored by Vũ Long

Computers

Used 3+ times

JS-ES6
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When was JavaScript created?

1997

2009

1998

1995

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of a transpiler in JavaScript?

To downgrade the source code to support older browsers

To convert JavaScript code to a different language

To compress the JavaScript code

To upgrade the source code to support newer browsers

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the syntax for an arrow function in ES6?

function myFunction() => {}

() => {}

function myFunction() {}

function myFunction() => {}

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of scope does ES6 introduce?

Local scope

Function scope

Block scope

Global scope

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the spread operator in JavaScript?

To support functions with a variable number of parameters

To calculate the minimum of an array

To convert an array to a list of parameters

To combine two arrays into one

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How does the rest parameter differ from the spread operator?

The rest parameter is used to combine two arrays into one

The rest parameter is used to have a fixed number of parameters and a variable number of parameters combined

The spread operator is used to support functions with a variable number of parameters

The spread operator is used to convert an array to a list of parameters

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of destructuring in JavaScript?

To combine two objects into one

To support old browsers with transpiler

To extract values from a data structure and assign them to variables

To convert an array to a list of parameters

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?