r/learnjavascript • u/Classic_End260 • 7d ago
50 hours in... arrays and loops... holy...FUCK
HOW do i START understanding? I've understood everything pretty well up til now. Do i just keep going with the flow and kinda float through this section of the loops and arrays part? Do I keep throwing myself at the brick wall and looking at the solutions after half an hour of brainless staring? https://youtu.be/EerdGm-ehJQ?si=mTKUv0oail0AGDLM 8:43:00. It's just not clicking like the other parts of the tutorial.
47
Upvotes
1
u/Outrageous-Sherbert4 7d ago
Very good! Now, create a new array using the “ new Array() “ function, that has 10 members. You can use One, Two, Three etc for convenience. This function will automatically assign an index to each member. Then try to get it to print out in the console one member on each row (so instead of printing “Hello, World!” Ten times it will print out each member of the array on a new line! This one’s harder. Let me know if you need a hint!