Skip to content

Commit

Permalink
Done.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristin F committed May 17, 2018
1 parent 35ad617 commit 37b6353
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
var animal = 'dog'

function myAnimal() {
return animal
var animal = 'dog';
return animal;
}

function yourAnimal() {
// How can we make sure that this function
// and the above function both pass?
// P.S.: You can't just hard-code 'cat' below
return animal
var animal = 'cat';
return animal;
}

function add2(n) {
return n + two
const two = 2
return n + two;

// Feel free to move things around!
const two = 2

}

var funkyFunction = function() {
Expand All @@ -26,4 +28,5 @@ var funkyFunction = function() {

// We want to set theFunk equal to "FUNKY!" using our funkyFunction.
// NOTE: you only need to modify the code below this line.
var theFunk = funkyFunction
var funk2 = funkyFunction();
var theFunk = funk2();

0 comments on commit 37b6353

Please sign in to comment.