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
Copy file name to clipboardExpand all lines: 1-js/02-first-steps/04-variables/article.md
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -285,6 +285,16 @@ const pageLoadTime = /* time taken by a webpage to load */;
285
285
The value of `pageLoadTime` is not known prior to the page load, so it's named normally. But it's still a constant because it doesn't change after assignment.
286
286
287
287
In other words, capital-named constants are only used as aliases for "hard-coded" values.
288
+
One more point to remember is you can not just declare a const variable without initializng it at the same line.
0 commit comments