“Saya di JavaScript” Kode Jawaban

JavaScript untuk

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

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

Saya di 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

Saya di 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

Jawaban yang mirip dengan “Saya di JavaScript”

Pertanyaan yang mirip dengan “Saya di JavaScript”

Lebih banyak jawaban terkait untuk “Saya di JavaScript” di JavaScript

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya