Contra - A professional network for the jobs and skills of the futureMastering Arrays and Loops: A Freelancer's Quick Guide
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
Arrays & Loops (Quick Guide)
An array is a way to store multiple values in a single variable—like a list. Instead of creating many variables, you group related data together.
A loop lets you go through each item in that array one by one. This is useful when you want to process, display, or modify all values without repeating code.
const fruits = ["apple", "banana", "orange"];

for (let i = 0; i < fruits.length; i++) {
console.log(fruits[i]);
}
This loop goes through the array and prints each fruit.
In short: Arrays store data. Loops help you work through that data efficiently.
If you understand this... Drop a comment, 1 lolipop for you
Post image
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started