You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Declaring a variable in JavaScript has always traditionally been done with the varkeyword.
By now you’ve figured out that var has some problems, which is precisely why let statements were introduced. Apart from the keyword used, let statements are written the same way var statements are.
The text was updated successfully, but these errors were encountered:
建议使用关键字这个更合适的术语,如 TypeScript 官网文档所示:
Variable Declarations
The text was updated successfully, but these errors were encountered: