25 lines
599 B
JavaScript

//Do not edit this list
var challengeArray = ["New York", "Dog", "Philly", "Dog", "Jersey", "Dog", "Cali", "Dog"];
// your code goes in this function
function getDogs(array){
}
// call the function
// do not edit the assert statements
function assert(testnum, bool){
console.log('Test ' + testnum + ": " + bool);
}
assert(1, challengeArray === ['New York', 'Burger', 'Philly', 'Burger', 'Jersey', 'Burger', 'Cali', 'Burger']);
//Make sure you have the correct array - is the assert test working? Why not? Google!
//Write a custom test that allows it to prove challengeArray's equality.