VID 15 - LOOPS - Learn JavaScript with Creative Coding - fun, colorful and free!

preview_player
Показать описание
VID 15 [Lesson 05 - Arrays and Loops] - Dr Abstract teaches JavaScript with the following topics:
0:00 - intro to creative coding video 15
0:14 - last vid summary on Arrays
0:50 - what is a loop
1:20 - last code - spelling lollipop wrong - sigh
2:42 - general format of a for () {} loop
3:57 - comparison of structure to function and conditional
5:00 - parts of the loop - starting at 0
5:50 - logging results of for loop
6:19 - ZIM world domination
6:33 - parts described again
7:33 - looping backwards
8:30 - increment operators ++, --, +=, etc.
9:00 - post and pre incrementing
12:40 - looping by 2 or any other number
12:54 - using continue to skip to next loop
14:11 - using break to leave the loop
14:50 - nested loop - i and j, and name of iterator
16:42 - looping through an array
17:22 - using the length of the array to determine loop
18:14 - accessing elements of array with loop number
19:01 - explaining how the index number works
20:08 - hard-coding instead of looping - not for 1000 loops!
20:50 - creating Display Objects in a loop
23:10 - positioning objects with i to shift each object like a tile
24:56 - looping through a colors array to color objects
27:00 - the modulus % operator to get remainder
29:50 - using the modulus to cycle through array in loop
31:28 - conclusion and closing video - looped rings!

The Learn JavaScript with Creative Coding is a video series to help left brain and right brain learners explore the wonders of programming using the fun, colorful and friendly HTML Canvas and ZIM. Dr Abstract is a Canadian New Media Awards winner for Programmer and Educator of the Year. He will teach the basics of programming in JavaScript from the ground up so welcome designers, artists, engineers, developers, and all.

Cheers from #LearnJavaScript with #CreativeCoding and #DrAbstract founder of #ZIMjs
Рекомендации по теме
welcome to shbcf.ru