Created
September 9, 2019 17:55
-
-
Save arttuladhar/2f89b788729974a01ab9e2d9de881aa4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Three Basic Types in TypeScript */ | |
let isDone: boolean = false; | |
let lines: number = 42; | |
let firstName: string = "Aayush"; | |
/* Using Derived from Variables */ | |
let derivedIsDone = false; | |
let derivedLines = 42; | |
let derivedfirstName = "Anders"; | |
/* Use const keyword for Constants */ | |
const numCats = 23; | |
numCats = 25; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment