Difference between TypeScript and JavaScript
Ever wondered about the difference between JavaScript and TypeScript? If you’re into web development, knowing these two languages is super important. They might seem alike, but they’re actually pretty different and can affect how you code and build stuff online....
read more
TypeScript | Array map() Method
The Array.map() is an inbuilt TypeScript function that is used to create a new array with the results of calling a provided function on every element in this array....
read more
How to execute TypeScript file using command line?
...
read more
How to Cast a JSON Object Inside of TypeScript Class ?
We use JSON objects to store and transport data between a server and a client application, or locally in a node project. In Typescript, there are two types of objects....
read more
Hello World in TypeScript
TypeScript is an open-source programming language. It is developed and maintained by Microsoft. TypeScript follows javascript syntactically but adds more features to it. It is a superset of javascript. The diagram below depicts the relationship:...
read more
TypeScript Arrays
An array is a user-defined data type. An array is a homogeneous collection of similar types of elements that have a contiguous memory location and which can store multiple values of different data types....
read more
Array filter() Method – TypeScript
The Array.filter() is an inbuilt TypeScript function which is used to creates a new array with all elements that pass the test implemented by the provided function. Syntax:...
read more
How to Import another TypeScript Files ?
Some times we want some facility that we have been used in our previous projects, in that situation we can’t rewrite that script again we can simply import that by making that file exportable. To import other TypeScript files into an existing TypeScript file we should know the concept of modules. Starting with ECMAScript 2015, JavaScript has a concept of modules and TypeScript shares this concept....
read more
Data types in TypeScript
When you create a variable, you’re planning to give it a value. But what kind of value it can hold depends on the variable’s data type. In TypeScript, the type system defines the various data types supported by the language. The data type classification is as given below:...
read more
TypeScript String split() Method
The split() method in TypeScript allows you to split a string into an array of substrings by separating the string using a specified separator. It’s a method for handling string manipulation. In this article, we’ll learn the details of this method, and provide practical examples....
read more
TypeScript | String replace() Method
The replace() is an inbuilt function in TypeScript which is used to find a match between a regular expression and a string, and replaces the matched substring with a new substring. Syntax:...
read more
How to convert string to number in TypeScript ?
In typescript, there are numerous ways to convert a string to a number. We can use the ‘+’ unary operator , Number(), parseInt() or parseFloat() function to convert string to number. Let’s demonstrate using a few examples....
read more