Skip to content
Open navbar menu
Sign UpLog In
ankitdomadiya

Ankit

@ankitdomadiya
Junior Software Engineer
GitHub
ankitdomadiya
ankitdomadiya
published a Repl
10 months ago
0
07_Interface
07_InterfaceIn TypeScript, an interface is a structure that defines a type by specifying the properties and methods that it must have. Interfaces are used to define a contract that must be followed by any object that implements the interface.
ankitdomadiya
ankitdomadiya
published a Repl
10 months ago
0
06_Union_Type
06_Union_TypeIn TypeScript, a union type is a type that can accept values of one of several specified types. You can define a union type using the pipe | symbol to separate the different types.
ankitdomadiya
ankitdomadiya
published a Repl
10 months ago
0
05_Objects
05_ObjectsIn TypeScript, an object is an instance of a custom type that represents a collection of properties and methods. You can define objects in TypeScript using object literals or by declaring classes.
ankitdomadiya
ankitdomadiya
published a Repl
10 months ago
0
04_Array
04_ArrayIn TypeScript, an array is a collection of values of the same type. You can declare an array by specifying the type of its elements followed by square brackets [].
ankitdomadiya
ankitdomadiya
published a Repl
10 months ago
0
03_Types
03_TypesIn TypeScript, "types" are a way of specifying the expected data type of a variable or expression. By declaring the type of a variable, you allow the TypeScript compiler to catch type-related errors before your code is executed. There are several built-in types in TypeScript, including number, string, boolean, any, and void. You can also declare custom types using interfaces or classes.
ankitdomadiya
ankitdomadiya
published a Repl
10 months ago
0
02_Dublicate_Identifier
02_Dublicate_IdentifierA "Duplicate Identifier" error in TypeScript occurs when you declare two variables, functions, or classes with the same name in the same scope.
ankitdomadiya
ankitdomadiya
published a Repl
10 months ago
0
01_Hello_World
01_Hello_WorldThe "Hello World" program in TypeScript is a basic program that outputs the message "Hello World!" to the console.