Skip to content

Instantly share code, notes, and snippets.

function square(x) {
return x*x;
}

Slides

  1. Write a function called average that takes an array of numbers as a parameter and returns the average of those numbers.

    After you write your function, you can test it using the above inputs to make sure that it behaves correctly.

  2. Write a function called min that finds the smallest number in an array of numbers.

Introduction to Abstraction

Lesson

Slides

Exercises

function each(coll, func) {

Introduction to Objects

Lesson

Slides

Exercises

Basic Requirements

Array Iteration with while & for

Lesson

Slides

Exercises

Try to write all of the exercises using both the for loop and while loop.

Introduction to Arrays

Lesson

Slides

Exercises

Basic Requirements

Iteration with the while Loop

Lesson

Slides

Exercises

Basic Requirements

Introduction to Variables

Lesson

Slides

Exercises

Basic Requirements

Logical Operators & More Conditionals

Lesson

Logical Operators

Slides

More Conditionals