News for hackers. Stuff that matters.
Re:Using const/let instead of var can make JavaScript code r... by JZumun on Wednesday October 21, 2020 @04:23AM (#24845830)
> for (let elem : arr) { ... }

Do you mean:

  for (let elem of arr) { ... }

Unless this is a joke about writing in Java & C++ (for which the colon syntax is valid) instead of javascript.

There are no comments on this comment yet.