Skip to content

Instantly share code, notes, and snippets.

View andersr's full-sized avatar
😅
Focusing

Anders Ramsay andersr

😅
Focusing
View GitHub Profile
@andersr
andersr / 0_reuse_code.js
Created October 14, 2016 11:36
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@andersr
andersr / index.html
Last active August 29, 2015 14:27 — forked from anonymous/index.html
JS Bin // source http://jsbin.com/kagaxusuho
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>

You're new on the job and have been given ownership of the company's jukebox application. Unfortunately, before you can even begin adding cool new features to make it much, much more awesome than it is now, you fire it up and it won't even run! Now you have to go through the code and squash all the bugs (there's a bunch!).

Given the following spec, dive into the code and fix one problem at a time until the program's output matches the spec and there are no errors!

to run the program, type ruby runner.rb

Remember!

  1. read your error messages carefully, check error messages and line numbers
  2. use pry or irb to check your assumptions!
  3. not all bugs will throw errors, check the output against the spec!