일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- HTML
- Redux
- 삶
- middleware
- hardhat
- CLASS
- web
- tailwindcss
- SSR
- REACT
- graphQL
- Ethereum
- 기준
- useState
- solidity
- Props
- CSS
- bitcoin
- typeScript
- error
- nextJS
- built in object
- concept
- Interface
- express.js
- evm
- JavaScript
- blockchain
- API
- node.js
- Today
- Total
목록전체 글 (369)
ReasonJun
In TypeScript, type inference refers to the process by which the TypeScript compiler automatically determines the type of a value or expression based on its usage and context. TypeScript's type inference system analyzes the code and infers types for variables, function return values, and other expressions, reducing the need for explicit type annotations in many cases. Here are some key points ab..
/// Any // All types are possible. However, in this case, there is no reason to use typescript, so it is rarely used. let hello3: any = 'Hello world' hello3 = 123 hello3 = false hello3 = null hello3 = {} hello3 = [] hello3= function () {} /// Unknown const z: any = 123 const u: unknown = 123 // When z is changed to u, all errors occur except for 'any'. // In other words, it is better to use 'unk..
Type annotations in TypeScript are used to explicitly specify the type of a variable, function parameter, return value, or any other entity in your code. They provide a way to declare the expected types and enforce type checking at compile-time, allowing you to catch type-related errors early in the development process. Type annotations are written using a syntax that resembles JavaScript, but w..
In TypeScript, the type keyword is used to define custom types or type aliases. It allows you to create reusable type annotations to represent different shapes of data, making your code more expressive and easier to understand. Here are the main ways in which the type keyword is used in TypeScript: Type Aliases: Type aliases allow you to create a new name for an existing type. They are helpful w..
TypeScript is an open-source programming language developed by Microsoft. It is a superset of JavaScript, which means that any valid JavaScript code is also valid TypeScript code. TypeScript introduces optional static typing and provides additional features and capabilities that enhance the development experience and help catch errors at compile-time. Here are some key features and concepts of T..
The code you provided demonstrates the usage of regular expressions in JavaScript to match and manipulate text based on specific patterns. Let's go through the code and understand its functionality: const str = `...`; // The text content to be matched and manipulated console.log(str.match(/^h.../gm)); // Matches strings starting with 'h' followed by any three characters. console.log(str.match(/\..
Regular expressions, often referred to as regex or regexp, are powerful tools for pattern matching and manipulating text in various programming languages, including JavaScript. A regular expression is a sequence of characters that defines a search pattern. It consists of a combination of ordinary characters and special characters (metacharacters) that have special meaning within the pattern. // ..
In web development, the location object in JavaScript provides information about the current URL and allows you to interact with it. It represents the URL of the document being displayed in the browser window and provides methods and properties for working with different aspects of the URL. Here are the key aspects of the location object: Accessing the Location Object: The location object is acc..
In web development, the history object in JavaScript provides access to the browser's history stack. It allows you to programmatically manipulate the browser's history, navigate between pages, and control the browsing session. Here are the key aspects of the history object: Accessing the History Object: The history object is accessible through the window.history property. Navigating History: The..
In web development, the "Web Storage" API provides a way to store data locally in the user's web browser. It consists of two mechanisms: localStorage and sessionStorage. Both mechanisms offer a simple key-value storage interface and are supported by modern web browsers. Here are the key points about Web Storage: localStorage: The localStorage object allows you to store key-value pairs persistent..