functions.js
// put this code block into a function, add a return statement, and call the function
put this code block into a function, add a return statement, and call the function
put this code block into a function add a return statement and call the function
function greatPetsFunction(){
let anotherGreatPet = 'bunny';
let anotherPetName = 'opal';
let anotherPetString = 'The best pet is a ' + anotherGreatPet + ' named ' + anotherPetName;
return anotherPetString
}
function greatPetsFunction ( ) { let anotherGreatPet = 'bunny' ; let anotherPetName = 'opal' ; let anotherPetString = 'The best pet is a ' + anotherGreatPet + ' named ' + anotherPetName ; return anotherPetString }
put this code block into a function, add a return statement, and call the function
put this code block into a function add a return statement and call the function
// return the anotherPetString here