typescript

typescript

How to use TypeScript in Visual Studio Code

We can write TypeScript code on VS Code. It doesn't come with the compiler. We need to install it globally before using it in VS Code. In this post, I will show you how we can use typescript in visual studio code and a few of its useful features like error checking, IntelliSense, etc.

Read
typescript

How to uppercase or lowercase all characters of a string in TypeScript

Converting all characters to uppercase or lowercase in typescript is similar to javascript. Typescript provides two simple methods to convert all characters to uppercase and to lowercase. In this tutorial, we will learn these two methods with examples.

Read
typescript

TypeScript template string examples

In TypeScript, we can use template strings instead of normal strings. In simple words, these are strings created using backticks or `. These are also called template literals or string literals. Template string or template literals have a lot of benefits over traditional strings that use single and double-quotes. In this post, we will learn the main advantages or main usage of template strings with examples.

Read
typescript

Typescript concat and split explanation with example

In this tutorial, we will learn how to split a string and how to concatenate multiple sub-strings in typescript. Typescript provides two different methods to do the concatenate and splitting easily. Let's have a look :.

Read
typescript

for...of loop of typescript explanation with examples

In this tutorial, we will learn how to use for...of loop with examples. Similar to the traditional for loop and for...in loop, we have one more variant of for loop known as the for...of loop. We can use this loop to iterate over the iterable objects like map, string, map, array etc. We will show you examples with different iterable objects. Let's have a look :.

Read
typescript

TypeScript for and for-in loop explanation & examples

Typescript for loop and for-in loops are used to execute a piece of code repeatedly. It checks one condition and if the condition is true, it executes. It runs the code piece repeatedly until the execution condition is true. Once it becomes false, it stops, quits the loop and executes the next steps of the program. In this tutorial, we will learn two different variants of the for loop in typescript- original for loop and for in loop.

Read
typescript

TypeScript character at specific index and index of character in string

In this tutorial, we will learn how to find the character of a string at a specific index in typescript i.e. we will read the character using its index. We will also learn how to find the index of a character in a string with examples.

Read