#typescript
Read more stories on Hashnode
Articles with this tag
Sometimes we want to allow more than one type in a variable, This can be easily done using Union Types. We simply add "|" symbol between the types...
Interfaces Interfaces are a way to define a structure that other data structures can adhere to. They can be classes, object literals, etc. We can...
Any type in TypeScript allows a variable to have any datatype. We revert to JavaScript if you use any keyword. // A variable of type any can take any...
In TypeScript functions cannot be defined unless the variables are given a datatype. function helloWorld(a: string, b: string) { return...
Arrays and object literals have the same implicit and explicit declarations as primitive datatypes. We can define an array of strings in TypeScript...
Introduction In an era where seamless content creation is paramount, GUI Blog emerges as a transformative tool designed to elevate your blogging...