Skip to content

Instantly share code, notes, and snippets.

View san-sekhon's full-sized avatar

Sandeep Singh Sekhon san-sekhon

View GitHub Profile

Booleans, Comparisons & Conditionals

Lesson

Slides

Exercises

Basic Requirements

Logical Operators & More Conditionals

Lesson

Logical Operators

Slides

More Conditionals

Introduction to Variables

Lesson

Slides

Exercises

Basic Requirements

Iteration with the while Loop

Lesson

Slides

Exercises

Basic Requirements

Introduction to Arrays

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 Objects

Lesson

Slides

Exercises

Basic Requirements

Introduction to Abstraction

Lesson

Slides

Exercises

function each(coll, func) {

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.