Const is applicable on For of Loops but not on For Loops (Why)

sojinsamuel

Sojin Samuel

Posted on July 5, 2022

Const is applicable on For of Loops but not on For Loops (Why)

I have seen people using const on for of loops, i admit why it doesnt work in the case of for loops but, does for of loop has the same case as that of for loops.

can you share your knowledge why const works on for of loops in javascript

💖 💪 🙅 🚩
sojinsamuel
Sojin Samuel

Posted on July 5, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related