WFWendel Fabian Chinsamyinwendelwritescode.hashnode.dev·Oct 10, 2024 · 2 min readTypescript Utility Types: Required<T>Introduction The Typescript Required<T> utility type provides a wonderful means converting optional properties to be mandatory instead. Let’s dive into an example to better understand the problem it solves! Problem Example interface Person { name...00
WFWendel Fabian Chinsamyinwendelwritescode.hashnode.dev·Mar 15, 2023 · 2 min readTypescript Literal TypesIntroduction Literal types are a feature of the Typescript compiler that allows the creation of types that have a specific value of a primitive type. Literal types can be of type string, number or boolean. Let's take a look at literal types in code. ...00
WFWendel Fabian Chinsamyinwendelwritescode.hashnode.dev·Mar 8, 2023 · 3 min readTypescript Union TypesIntroduction Typescript union types describe values that can be one of several distinct types. You could imagine an age variable that could be either a number or a string or an acceptTerms variable that could be a boolean or a number. Let's look at a...00
WFWendel Fabian Chinsamyinwendelwritescode.hashnode.dev·Mar 1, 2023 · 3 min readJavaScript Functions + HoistingIntroduction JavaScript functions are set of instructions that execute together to perform a task. A function may have one or more parameters or inputs. A function may also return a value. Javascript provides three distinct ways of defining a functio...00
WFWendel Fabian Chinsamyinwendelwritescode.hashnode.dev·Feb 28, 2023 · 2 min readJavaScript Ternary OperatorWhat is the ternary operator? The JavaScript ternary operator is a magical sprinkling of syntactic sugar that allows you to write concise code. It is a shorthand for the more traditional if-else statement found in JavaScript. Let's take a look at how...00