Better HN
topnewbestaskshowjobs
Log inSign up

ruffni

1 karma · joined Apr 18, 2016 (10y ago) · 1 submissions

Submissions

comment 10y ago · link · parent

is it possible that

for (const element of list) {

should actually be

for (let element of list) {

?

the former one raises "SyntaxError: invalid for/in left-hand side"