Learn to read, visualize, trace, debug, refactor and write small programs with arrays and no user interactions.
You will explore: different ways of accessing array elements, for-of
loops, reference vs. value, copying arrays and side-effects.
Practice using arrays and avoiding side-effects by learning to unit test functions that take arrays as arguments. This includes learning how to test whether or not a function produces array side effects.
- Write tests for functions that take arrays as arguments.
- Fix bugs in tested functions that take arrays as arguments.
- Write functions that take arrays as arguments and do not produce side-effects.
Integrate the skills from Isolate and Practice into larger programs that
use prompt
/alert
/confirm
to interact with the user. You will write and
test your functions in a separate folder, and import them to the main program.
- Import and use functions in your program from a separate file.
- Write functions that are imported and called in a program.
- Refactor portions of a program to a separate file as a reusable & tested function.
- Reverse-engineer programs that use functions declared in a separate file.
see /3-integrate/README.md for more details
Looking for a challenge? Try adapting each program from Integrate to use a
DOM UI instead of prompt
/alert
/confirm
.