Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

ES6 LinkedIn Learning

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

LinkedIn Learning

ECMAScript 6+ (ES6+)

1. What does ECMA stand for?


European Computer Manufacture Association
2. When will ES6 features work in the browser?
when the browser supports all of the features
3. What is transpiling?
the process of converting code to a format that can be read by a
browser
4. When you use Babel, what is the output?
code that works in a browser
5. What attribute must you add to a script tag when using the in-
browser transpiler?
type="text/babel"
6. What does webpack help developers to do?
Automate processes like transpiling and sass to css conversion.
7. What is the most important change in the webpack config file
from webpack 1 to webpack 3?
he object key called "loaders" becomes "rules"
8. Why might you use the 'let' keyword instead of 'var'?
to enforce block scoping
9. What happens if you try to reset a variable that has been
declared as a constant?
console error
10. Are spaces recognized within a template string?
Yes, any spaces or characters are recognized.
11. What punctuation makes up the spread operator?
...
12. If a value is provided to a function that has default
arguments, what happens to the default arguments?
they are overwritten
13. What is the purpose of object literal enhancement?
shorter syntax, less typing
14. What does an arrow function point to?
whatever the function returns
15. Besides aesthetics, why might you want to use arrow
functions in your code?
to keep 'this' in scope
16. Where can you use destructuring assignment?
all of these answers
17. How do we hit pause in a generator?
use the yield keyword
18. Why are Symbols primarily used?
to create unique ids
19. What is the iterable protocol?
a way to customize iteration behavior
20. What is the purpose of promises?
to help developers manage asynchronous behavior in JavaScript
21. How do you return a promise object?
use return new promise()
22. What do you pass in to the fetch function?
a url that you want to fetch from
23. How can you use async/await in Node.js?
Use node version 8.
24. How do you make fetch asynchronous?
You can't since Fetch is already asynchronous.
25. What happens when you use the 'new' keyword with ES6
classes?
a new instance of the class is created
26. When a new instance of a class is created, what happens to
the custom methods in the base class?
They are inherited by the subclass.
27. What is a getter?
a method that gets the value of a property

You might also like