일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- API
- HTML
- node.js
- hardhat
- middleware
- evm
- typeScript
- Ethereum
- Props
- express.js
- concept
- JavaScript
- useState
- Redux
- error
- CLASS
- CSS
- REACT
- 삶
- graphQL
- web
- Interface
- nextJS
- solidity
- blockchain
- 기준
- SSR
- tailwindcss
- built in object
- bitcoin
- Today
- Total
목록Method (3)
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..
// this binding // 'this' is dynamically determined by the caller! function Hello(name) { this.name = name; this.printName = function () { console.log(`My name is ${this.name}`); }; } function YourName(name) { this.name = name; this.printName = function () { console.log(`Your name is ${this.name}`); }; } const youjun = new Hello('youjun'); const neo = new YourName('neo'); youjun.printName(); // ..
declaration method built-in way inline method Link method ⇒ Parallel method import method @import url("./box.css"); css selector basic // Universal Selector * { color: red; } // Type Selector li { color: red; } // Class Selector .orange { color: red; } // ID Selector #orange { color: red; } complex // Basic Combinator span.orange{ color: red; } // Child Combinator ul > .orange { color: red; } //..