“I en javascript” Réponses codées

javascript pour

const array = ['hello', 'world', 'of', 'Corona'];

for (const item of array) {
  console.log(item);
}
2 Programmers 1 Bug

I en javascript

"i" is a temporary variable used to store the integer value of the current position in the range of the for loop that only has scope within its for loop. You could use any other variable name in place of "i" such as "count" or "x" or "number".
Powerful Peacock

I en javascript

The variable i in the anonymous function declaration function(i) is the name used for the first parameter inside the function body. It does not correspond to any variable elsewhere in your page.
Powerful Peacock

Réponses similaires à “I en javascript”

Questions similaires à “I en javascript”

Plus de réponses similaires à “I en javascript” dans JavaScript

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code