“Ich in JavaScript” Code-Antworten

JavaScript für

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

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

Ich in 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

Ich in 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

Ähnliche Antworten wie “Ich in JavaScript”

Fragen ähnlich wie “Ich in JavaScript”

Weitere verwandte Antworten zu “Ich in JavaScript” auf JavaScript

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen