Skip to content

Instantly share code, notes, and snippets.

@kluu1
Created June 1, 2020 15:01
Show Gist options
  • Save kluu1/a5f7d85f5cdf1758b6c5559b5d00ffac to your computer and use it in GitHub Desktop.
Save kluu1/a5f7d85f5cdf1758b6c5559b5d00ffac to your computer and use it in GitHub Desktop.
let myExampleNumber: number = 23;
myExampleNumber = 'some number'; // This line will throw an error
myExampleNumber = 5; // This line will work
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment