Skip to content

Instantly share code, notes, and snippets.

@KinoAR
Last active Nov 16, 2018
Embed
What would you like to do?
An example of types and adding integers in Typescript.
//Add type information when declaring variables
const numOne:number = 3;
const numTwo:number = 4;
//Print out the result of the addition
console.log(numOne + numTwo); //7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment