+ 1

Pls guys what does "i" stands for in JavaScript

20th Jun 2019, 11:13 PM
chinaza
chinaza - avatar
4 Answers
+ 6
Thank guys, was really helpful thank God i have you all.
21st Jun 2019, 6:32 AM
chinaza
chinaza - avatar
+ 2
If you're talking about the "i" usually used in for loop, it actually doesn't mean anything. You can use any letter. It's just a variable.
21st Jun 2019, 1:23 AM
Abdullahi Muhammad Nma
Abdullahi Muhammad Nma - avatar
+ 2
The variable “i” is commonly used in for loops. It is more of a universal thing that is commonly used. Changing it does absolutely nothing but it helps with organization. Example: for(var i = 0; i <= 5; i++){ console.log(i); }; Changing i to anything, for example “muffin” changes nothing. I still recommend changing nothing for readability though.
21st Jun 2019, 3:08 AM
YoBoi
0
Show us the code, maybe we can help you
20th Jun 2019, 11:19 PM
HNNX 🐿
HNNX 🐿 - avatar