ES6 Flashcards
1
Q
What is “syntactic sugar”?
A
syntactic sugar is syntax within a programming language that is designed to make things easier to read or to express
2
Q
What is the typeof an ES6 class?
A
function
3
Q
Describe ES6 class syntax.
A
class Example { constructor(name) { this.name = name; } getName() { return this.name; } }
4
Q
What is “refactoring”?c
A
code refactoring is the process of restructuring existing code without changing its external behavior
5
Q
How are ES Modules different from CommonJS modules?
A
ES Modules have import/export/default keywords
CommmonJS we require a function and have to assign it to a variable
6
Q
What kind of modules can Webpack support?
A