일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- API
- useState
- solidity
- web
- blockchain
- hardhat
- JavaScript
- bitcoin
- SSR
- Redux
- concept
- CSS
- CLASS
- middleware
- typeScript
- Interface
- 기준
- error
- node.js
- 삶
- HTML
- express.js
- tailwindcss
- Ethereum
- evm
- nextJS
- graphQL
- REACT
- Props
- built in object
- Today
- Total
목록Frontend/Javasciprt (48)
ReasonJun
// 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(); // ..
In JavaScript, the this keyword refers to the context in which a function is executed. It is a special keyword that provides a reference to the object on which a method or function is being invoked. The value of this is determined dynamically at runtime based on how a function is called, rather than being lexically bound during the function's definition. The behavior of this depends on the invoc..
A closure is a fundamental concept in JavaScript that allows a function to retain access to variables from its outer (enclosing) lexical scope even after the outer function has finished executing. In simpler terms, a closure is a combination of a function and the lexical environment within which that function was declared. To understand closures, it's important to grasp the concept of lexical sc..
Object.create() Object.create() is a static method in JavaScript that creates a new object with the specified prototype object and properties. It allows you to create an object and explicitly set its prototype. The basic syntax for using Object.create() is as follows: Object.create(proto, [propertiesObject]) proto: The object that will be the prototype of the newly created object. It can be null..
In JavaScript, "instance-level functions" and "prototype-level functions" are two ways to define and access functions within objects. These concepts are related to the object's prototype chain and how functions are shared among instances of objects. Instance-Level Functions: Instance-level functions, also known as "own functions" or "own methods," are functions defined directly on an individual ..
In JavaScript, the prototype is an internal property of objects that allows objects to inherit properties and methods from other objects. Every JavaScript object has a prototype, except for the base object Object.prototype, which is the ultimate prototype for all objects. The prototype forms the basis for JavaScript's prototype-based inheritance model. When you access a property or method on an ..