DEV Community

Discussion on: ES6 for loops: Best Practices

Collapse
 
jdbruxelles profile image
José dBruxelles

About for..in, in the code, you wrote:
for(const key of primes) {

Instead of

for(const key of primes) {

Collapse
 
godcrampy profile image
Sahil Bondre

Yup fixed! Thank you for pointing it out.😄