일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- REACT
- CLASS
- typeScript
- solidity
- JavaScript
- SSR
- hardhat
- built in object
- bitcoin
- concept
- evm
- nextJS
- 삶
- Interface
- Props
- middleware
- useState
- blockchain
- graphQL
- CSS
- Redux
- web
- Ethereum
- node.js
- 기준
- API
- express.js
- tailwindcss
- error
- Today
- Total
목록Destructing assignment (2)
ReasonJun
spread const a = [1, 2, 3]; console.log(...a); // 1 2 3 const b = [4, 5, 6]; const c = a.concat(b); console.log(c); // [ 1, 2, 3, 4, 5, 6 ] const d = [a, b]; console.log(d); // [ [ 1, 2, 3 ], [ 4, 5, 6 ] ] const e = [...a, ...b]; console.log(e); // [ 1, 2, 3, 4, 5, 6 ] const aa = { x: 1, y: 2 }; const bb = { y: 3, z: 4 }; const cc = Object.assign({}, aa, bb); console.log(cc); // { x: 1, y: 3, z:..
truthy / falsy if (0) { console.log('true'); } if ('0') { console.log('true'); // true } // false // 1) false // 2) 0 // 3) null // 4) undefined // 5) NaN // 6) '' // 7) 0n const fruits = ['apple', 'banana']; if (fruits) { console.log('item here'); // item here } const fruits1 = []; if (fruits1.length) { console.log('item here'); // } object // Object literal { key: value } // new Object() // Ob..