일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
- HTML
- js
- ES5
- node.js
- Temporal dead zone
- yet
- for loop
- a11y
- modal
- Review
- addEventListener
- es6
- keyboardEvent
- dotenv
- innerText
- beforeinput
- react
- keyup
- TypingEffect
- css:position
- nodeValue
- UI
- Dom
- textContent
- Event
- Empty
- node
- CSS
- innerHTML
- javascript
- Today
- Total
목록es6 (3)
the murmurous sea
The study started from: I can't hoist const function...?! Why...? A. Declaring Variables www.youtube.com/watch?v=dzEieWaOJE0&t=5s www.youtube.com/watch?v=j-9_15QBW2s B. Temporal Dead Zone It's because of : Unlike variables declared with var, which will start with the value undefined, let variables are not initialized until their definition is evaluated. : Accessing the variable before the initia..
After //1. var console.log('typeof minus:', typeof minus) console.log('minus(5,1):', minus(5,1)) var minus = (a,b) => a - b; //typeof minus: undefined //Uncaught TypeError: minus is not a function at check.js:4 //(anonymous) @ check.js:4 //2. const console.log('typeof minus:', typeof minus) console.log('minus(5,1):', minus(5,1)) const minus = (a,b) => a - b; //Uncaught ReferenceError: Cannot acc..
1. method 2. returns a Promise. 3. As the then and Promise.prototype.catch() methods return promises, they can be chained — an operation called composition. 4. returns a Promise which allows for method chaining. [Syntax] p.then(onFulfilled[, onRejected]); p.then(value => { // fulfillment }, reason => { // rejection }); onFulfilled Optional A Function called if the Promise is fulfilled. : has one..