일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- concept
- HTML
- REACT
- solidity
- error
- node.js
- graphQL
- CLASS
- SSR
- nextJS
- hardhat
- Redux
- typeScript
- Ethereum
- CSS
- Interface
- Props
- 기준
- JavaScript
- middleware
- useState
- tailwindcss
- built in object
- bitcoin
- web
- evm
- express.js
- 삶
- blockchain
- API
- Today
- Total
목록Variable (3)
ReasonJun
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/dpIpwl/btsywt1Hbpf/Z6r9hkekF469Z4mZjxYPa0/img.png)
Variable : The name given to the memory space that can store variable values, or the memory space itself, is called a 'variable'. State Variables : Declared outside of a function. Variable permanently stored in the contract storage. Local Variables : Declared inside a function. Exists only during function execution. Not stored in blockchain contract. Global Variables : (ex. Block info , msg info..
array const fruits = new Array('apple', 'banana', 'cherry'); console.log(fruits); // [ 'apple', 'banana', 'cherry' ] const fruits1 = ['apple', 'banana', 'cherry']; console.log(fruits1); // [ 'apple', 'banana', 'cherry' ] console.log(fruits[0]); // apple // 'from' has the iterable property, so it iterates. array = Array.from('text'); // copy console.log(array); // [ 't', 'e', 'x', 't' ] array = A..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/NiQVa/btsiOhwt0li/DjsjvmmwAaSq2K0as579bK/img.png)
Memory stack : function/order of execution heap: where objects are stored Data type javascript Primitive - immutable : Boolean, String, Number, null, undefined, Symbol Reference - mutable : Object, Array Basically, javascript uses call stack memory space to store references and values for primitive types, but uses a separate memory space called Heap for reference types. In this case, the call st..