Class Prep 8

This course includes a lot of hands-on, in-class activities. These activities assume that you have completed the associated preps before coming to class.


Read

  1. FunWebDev Chapter 10.1 (Array Functions)
  2. FunWebDev Chapter 10.3 (Asynchronous Coding)
  3. FunWebDev Chapter 10.4.1 (brief overview)

Array Champion 3000

It’s time to work out those array muscles and exercise your JavaScript skills that you’ve been developing!

  1. First, open up the MDN web docs for arrays.

  2. Next, download the starter HTML file and put it in your cs343/dev directory, inside a new folder called prep8 or something similar.

  3. Open it through VS Code. You should see a few arrays and eight numbered comments.

  4. Your goal is to use different array methods and write callback functions to solve each of the little exercises and become an array CHAMPION!

    • Pro tip: The MDN web docs listed above are your best friend here
    • Make sure your variable names to store the results match those provided in the file!
  5. When you’re done, submit your arrays.html to the corresponding Gradescope assignment.



James Madison University logo


© 2011-2025 Michael S. Kirkpatrick.
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.