Created
February 11, 2019 11:57
-
-
Save mredem96/f53e914e3bd94204e123558d17ee9fa0 to your computer and use it in GitHub Desktop.
Rather than type system guess which type this variable should be we can provide type for a variable
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
let age:number=22 // ":" this is called type annotation |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment