1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-19 04:52:13 +02:00

Merge pull request #3051 from simsieg/patch-1

[typescript/en] Fix naming of constant
This commit is contained in:
Adam Bard
2018-02-20 00:03:50 -08:00
committed by GitHub

View File

@@ -29,7 +29,7 @@ let notSure: any = 4;
notSure = "maybe a string instead";
notSure = false; // okay, definitely a boolean
// Use const keyword for constant variables
// Use const keyword for constants
const numLivesForCat = 9;
numLivesForCat = 1; // Error