mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-06 23:06:49 +02:00
Fix naming of constant
This commit is contained in:
@@ -29,7 +29,7 @@ let notSure: any = 4;
|
|||||||
notSure = "maybe a string instead";
|
notSure = "maybe a string instead";
|
||||||
notSure = false; // okay, definitely a boolean
|
notSure = false; // okay, definitely a boolean
|
||||||
|
|
||||||
// Use const keyword for constant variables
|
// Use const keyword for constants
|
||||||
const numLivesForCat = 9;
|
const numLivesForCat = 9;
|
||||||
numLivesForCat = 1; // Error
|
numLivesForCat = 1; // Error
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user