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 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 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

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 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 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

Python find the key of a dictionary with maximum value

In this tutorial, we will learn how to find the key of a dictionary with maximum value in python. We will learn different ways to solve this problem. In these examples, we will use one predefined dictionary.

Read

Python flatten a nested list or list of lists

Nested lists are lists holding other lists as its elements. These are also called lists of lists. If you want to flatten a nested list, you can easily do it by running a couple of for loops. In this tutorial, we will learn how to flat a nested list using a couple of different approaches.

Read

Python program to find all numbers in a string

In this tutorial, we will learn how to find out all numbers in a string using python. The program will take one string as an input from the user. It will find out all numbers in that string and print them on the console.

Read

How to sort documents in MongoDB

We can easily sort the documents before retrieving them from a collection in MongoDB. Sorting is one of the important functionality that we should be aware of. In this tutorial, I will show you how to sort documents with a query.

Read