JS-ES6

JS-ES6

15 Qs

quiz-placeholder

Similar activities

Moringa JavaScript Arrays

Moringa JavaScript Arrays

5th Grade - Professional Development

10 Qs

JavaScript

JavaScript

Professional Development

11 Qs

Day 1 | Web Alchemy 01

Day 1 | Web Alchemy 01

University

10 Qs

JS - Knowledge Check

JS - Knowledge Check

University

16 Qs

JavaScript Advanced

JavaScript Advanced

KG - University

15 Qs

JavaScript Fundamentals

JavaScript Fundamentals

8th Grade

15 Qs

Java Basics

Java Basics

Professional Development

17 Qs

More on JavaScript

More on JavaScript

University

19 Qs

JS-ES6

JS-ES6

Assessment

Quiz

Computers

Hard

Created by

Vũ Long

Used 3+ times

FREE Resource

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

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?