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.
ReadConverting 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.
ReadIn 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.
ReadIn 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 :.
ReadIn 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 :.
ReadTypescript 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.
ReadIn 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