일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- nextJS
- express.js
- 삶
- web
- HTML
- error
- useState
- Redux
- evm
- tailwindcss
- bitcoin
- Ethereum
- REACT
- hardhat
- built in object
- concept
- SSR
- CSS
- Interface
- graphQL
- Props
- CLASS
- typeScript
- node.js
- solidity
- 기준
- middleware
- API
- blockchain
- JavaScript
- Today
- Total
목록Variable (3)
ReasonJun
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..
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..