Skip to content

Commit 4fc58fc

Browse files
authored
Fix typo in recommendation for transpiler usage (#43)
1 parent 15e13a9 commit 4fc58fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • questions/what-are-the-differences-between-variables-created-using-let-var-or-const

questions/what-are-the-differences-between-variables-created-using-let-var-or-const/en-US.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ const bar = 'bar';
116116
- In modern JavaScript, it's generally recommended to use `const` by default for variables that don't need to be reassigned. This promotes immutability and prevents accidental changes.
117117
- Use `let` when you need to reassign a variable within its scope.
118118
- Avoid using `var` due to its potential for scoping issues and hoisting behavior.
119-
- If you need to target older browsers, write your code using `let`/`const`, and use a transpiler like Babel compile your code to older syntax.
119+
- If you need to target older browsers, write your code using `let`/`const`, and use a transpiler like Babel to compile your code to older syntax.
120120

121121
## Further reading
122122

0 commit comments

Comments
 (0)