Looping through Arrays | Computer Programming | Khan Academy

preview_player
Показать описание
Pamela explains how to use loops to iterate through each value in an array.

Computer Programming on Khan Academy: Learn how to program drawings, animations, and games using JavaScript & ProcessingJS, or learn how to create webpages with HTML & CSS. You can share whatever you create, explore what others have created and learn from each other!

For free. For everyone. Forever. #YouCanLearnAnything

Рекомендации по теме
Комментарии
Автор

Thanks!
This helped me a lot on khan academy! :)

beanswows
Автор

Why there are two rows of friend names at last when she changed the x value to 87? I mean she only wanted to loop the y and the friend num. can anyone explain me pls

prasadguy
Автор

what is the problem it can not run?

var myAnimals = ["lion", "tagge", "mouse"];

fill(255, 0, 0);

var AnimalNum = 0;

while(AnimalNum < myAnimals.length){

text(myAnimals[AnimalNum], 10, 20+myAnimals*20);

AnimalNum++;









}

salladosman