@[email protected] to Programmer [email protected] • 7 months agoWhat are variables and semicolons for actually?message-square34fedilinkarrow-up1110arrow-down18file-text
arrow-up1102arrow-down1message-squareWhat are variables and semicolons for actually?@[email protected] to Programmer [email protected] • 7 months agomessage-square34fedilinkfile-text
minus-square@[email protected]linkfedilinkEnglish4•7 months agofor (const item in items) { } != for (const item of items) { }
for (const item in items) { }
!=
for (const item of items) { }
Still better than
for _, item in ipairs(items)