Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Done #2212

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Done #2212

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
var animal = 'dog'
var animal = 'dog';

function myAnimal() {
// You should not need to modify this function
return animal
return animal;
}

function yourAnimal() {
Expand All @@ -11,22 +11,24 @@ function yourAnimal() {
// How can we make sure that this function
// and the above function both pass?
// P.S.: Hard-coding 'cat' below will not work
return animal
var animal = "cat";
return animal;
}

function add2(n) {
return n + two

// Feel free to move things around!
const two = 2
const two = 2;
return n + two;
}

var funkyFunction = function() {
return function() {
return "FUNKY!"
return "FUNKY!";
}
}

// 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
// NOTE: you only need to modify the code below this line

var theFunk = funkyFunction;
var theFunk = funkyFunction()();