JAVASCRIPT · ОСНОВЫ · LESSON 14
Each element
for...of loop · about 12 minutes
Learning with progressRead the summary for free. To save the work, log in to the account.
Type the code yourself
Type an example manually. Check the names, brackets and signs.
const nums = [2, 4];
for (const number of nums) {
console.log(number);
}Open the editor for class workSolve it yourself
Create const coins as an array 1, 3, 5. With for...of, output each number; the current element is called coin.
The answer is hidden. Use similar examples from the lesson notes.
Opening up your homework