일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
- 삶
- middleware
- bitcoin
- graphQL
- error
- Interface
- tailwindcss
- Redux
- concept
- express.js
- node.js
- typeScript
- API
- Ethereum
- CLASS
- Props
- SSR
- web
- CSS
- built in object
- JavaScript
- hardhat
- 기준
- nextJS
- REACT
- HTML
- blockchain
- evm
- solidity
- useState
- Today
- Total
목록Object (4)
ReasonJun
Solidity is an object-oriented programming language, which means that it supports the concepts of classes, objects, and methods. Class A class is a blueprint for creating objects. It defines the structure and behavior of objects. A class can contain state variables, functions, and other classes. Object An object is an instance of a class. It has the state variables and functions defined in the c..
Object: An object is a fundamental concept in JavaScript and is an instance of a particular class or a collection of key-value pairs. Objects can be created using object literals ({}), the Object() constructor, or by instantiating a class using the new keyword. const person = { name: 'John', age: 30, }; console.log(person.name); // Output: John In the example above, person is an object created u..
object //? Object.assign() // Copies properties from one or more objects to a target object and returns the target object. const target = { a: 1, b: 2 }; const source1 = { b: 3, c: 4 }; const source2 = { c: 5, d: 6 }; const result = Object.assign(target, source1, source2); const result1 = { ...target, ...source1, ...source2, }; console.log(target); // { a: 1, b: 3, c: 5, d: 6 } console.log(resul..
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..