filmov
tv
Introduction to Arrays with p5.js
Показать описание
An array is a list of variables that share a common name. Arrays are useful because they make it possible to work with more variables without creating a new name for each one. This makes the code shorter, easier to read, and more convenient to update.
When a program needs to keep track of one or two things, it’s not necessary to use an array. In fact, adding an array might make the program more complicated than necessary. However, when a program has many elements, arrays make the code easier to write.
When a program needs to keep track of one or two things, it’s not necessary to use an array. In fact, adding an array might make the program more complicated than necessary. However, when a program has many elements, arrays make the code easier to write.