Modern JavaScript from the Beginning - Second Edition - ES Modules
Interactive Video
•
Information Technology (IT), Architecture
•
University
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Read more
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What attribute must be added to a script tag to use ES modules in the browser?
src
defer
type
async
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you export a single function as the default in ES modules?
module.exports = functionName
export default functionName
exports.functionName
export functionName
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When importing a default export in ES modules, which syntax is used?
import { functionName } from 'module'
import functionName from 'module'
require('module').functionName
import * as functionName from 'module'
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you import multiple named exports from a module in ES modules?
import { functionName1, functionName2 } from 'module'
import functionName1, functionName2 from 'module'
import * as module from 'module'
require('module').functionName1, functionName2
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to export multiple functions in ES modules?
export default { functionName1, functionName2 }
module.exports = { functionName1, functionName2 }
export { functionName1, functionName2 }
exports.functionName1, functionName2
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to export a class as the default in ES modules?
export class
exports
export default
module.exports
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of using a module bundler like Webpack?
To minify JavaScript files
To optimize CSS files
To bundle multiple modules into a single file
To convert ES6 code to ES5
Similar Resources on Wayground
6 questions
The Complete Excel Guide: Beginners to Advanced - Overview of Formulas
Interactive video
•
University
6 questions
Adidas Introduces Revolutionary Computerized Running Shoe with Adaptive Cushioning
Interactive video
•
KG - University
6 questions
SQL Server Course for Beginners with 100+ examples - SUM() Function
Interactive video
•
University
6 questions
How to use arrays and slices in Go
Interactive video
•
University
6 questions
Complete SAS Programming Guide - Learn SAS and Become a Data Ninja - Substr Function
Interactive video
•
University
6 questions
PC Water Cooling explained
Interactive video
•
University
8 questions
Selenium WebDriver with Java - Basics to Advanced and Frameworks - Explaining Function Overloading in Java with an Examp
Interactive video
•
University
8 questions
Arduino OOP - Create a Header File for the Class
Interactive video
•
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Information Technology (IT)
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
20 questions
christmas songs
Quiz
•
KG - University
20 questions
Holiday Trivia
Quiz
•
9th Grade - University
15 questions
Holiday Movies
Quiz
•
University
14 questions
Christmas Trivia
Quiz
•
3rd Grade - University
20 questions
Christmas Trivia
Quiz
•
University
8 questions
5th, Unit 4, Lesson 8
Lesson
•
KG - Professional Dev...
20 questions
Disney Trivia
Quiz
•
University