Skip to content
Open

Done #122

Show file tree
Hide file tree
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
10 changes: 8 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

var animal = 'dog'

function myAnimal() {
Expand All @@ -8,14 +9,16 @@ 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
var animal='cat'
return animal
}

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

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

}

var funkyFunction = function() {
Expand All @@ -26,4 +29,7 @@ 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 theFunk = funkyFunction()()

myAnimal()
yourAnimal()
1 change: 1 addition & 0 deletions test/index-test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

/*global describe, it */

describe('Fix the Scope', function() {
Expand Down