This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function suffix(word) { | |
return word + "ly"; | |
} | |
function prefix(word) { | |
return "in" + word; | |
} | |
function pejorative(word) { | |
return prefix(suffix(word)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function mergeTwoNamesIntoOneWithoutSpaces(speciesOne, speciesTwo) { | |
// speciesOne and speciesTwo are variables; by defining what happens to the | |
// variables in a function, it lets us transform anything (of a compatible data type) | |
// that we pass into the function | |
// whatever we "return" is what the function spits out | |
return speciesOne + speciesTwo; | |
} |