Hey there! I'm Osaf Ali, Computer science student with a passion for problem-solving and software development. Embracing the exciting journey of technology with curiosity and creativity.
If you are an open-source contributor working with technologies such as Django, Flask, Python, etc then you know how tedious it gets to manage...
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...