![]() |
In TypeScript, you declare variables with explicit types by specifying the type of the variable after its name using a colon ( Example 1: Here, the variable // Declaring a variable with an explicit type Example 2: you can also declare and initialize a variable in a single line. // Declaring and initializing a variable with an explicit type |
Reffered: https://www.geeksforgeeks.org
JavaScript |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 15 |