mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-04 17:25:59 +02:00
Fixed mistake in a variables.md code snippet (#238)
Fixed unintentional code mistake in a Javascript example in variables.md. Co-authored-by: Jean-Philippe Sirois <[email protected]>
This commit is contained in:
co-authored by
Jean-Philippe Sirois
parent
58f3034024
commit
12d1346d4b
@@ -117,7 +117,7 @@ console.log(myVar); // 'test'
|
||||
This is fixed using `let`
|
||||
|
||||
```js
|
||||
for('let i = 0; i < 5; i++) {
|
||||
for(let i = 0; i < 5; i++) {
|
||||
console.log(i);
|
||||
}
|
||||
console.log(i); // Error: i is undefined
|
||||
|
||||
Reference in New Issue
Block a user