Tuesday June 28

Standups

Common Wins!

  • Class working together

Common Struggles

  • Javascript

Interruptions & Events

  • One on Ones with Josh!

Daily JS

TDD Review

Instructions

Given the code below, write code to make the digitize function work. The function should perform the following:

  • Given a non-negative integer, return an array / a list of the individual digits in order.

Methods to Look Up

  • Number.prototype.toString()
  • String.prototype.split
function digitize(n) {
}

console.assert(digitize(123)[0] === 1); // Checks that the first item in an array returned by `digitize(123)` is a number 1
console.assert(digitize(8675309)[6] === 9); // Checks that the item in position 6 of an array returned by `digitize(8675309)` is a number 9

Topics

Lab

Code

https://github.com/TIY-TN-FEE-2016-spring/lesson-03-02

Homework

results matching ""

    No results matching ""