Skip to content

Commit 6d404a0

Browse files
authored
fix: update let section
The section on `let` feels outdated. > The `let` keyword is actually a newer JavaScript construct that TypeScript makes available. I rewrote it based on my best solution but hoping to get feedback :)
1 parent b411ee7 commit 6d404a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/Basic Types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,5 +288,5 @@ Using one over the other is mostly a choice of preference; however, when using T
288288
# A note about `let`
289289

290290
You may've noticed that so far, we've been using the `let` keyword instead of JavaScript's `var` keyword which you might be more familiar with.
291-
The `let` keyword is actually a newer JavaScript construct that TypeScript makes available.
291+
The `let` keyword was introduced to JavaScript in ES2015 and is now considered the standard because it's safer than `var`.
292292
We'll discuss the details later, but many common problems in JavaScript are alleviated by using `let`, so you should use it instead of `var` whenever possible.

0 commit comments

Comments
 (0)