JAVASCRIPT · ОСНОВЫ · LESSON 15
Add to the list
push · 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 colors = ["красный"];
colors.push("синий");
console.log(colors.length);Open the editor for class workSolve it yourself
Create const colors as an array with the word «красный». Add «синий» and «зелёный» via push, then output the array length.
The answer is hidden. Use similar examples from the lesson notes.
Opening up your homework