I am watching a video about C programming, and the instructor has an example for loop that is written as such:
for(int i=0, n=strlen(c); i<n; i++)
In Javascript can we declare n in the same way as well? I'm trying to not set "i
Edit:
Thank you for the replys. Sounds like I can't do the code from above, but instead I would have to split it up into 2 separate line items like so:
const n = strlen(c);
for(int i=0; i<n; i++)