일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- beforeinput
- HTML
- node
- CSS
- Temporal dead zone
- js
- react
- node.js
- ES5
- a11y
- UI
- Review
- keyboardEvent
- for loop
- Empty
- javascript
- modal
- innerText
- innerHTML
- Dom
- addEventListener
- nodeValue
- dotenv
- es6
- TypingEffect
- yet
- css:position
- keyup
- textContent
- Event
- 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..