Created
November 27, 2018 04:38
-
-
Save hacktember/b54ea1ba8dadb960063e9c0fcdf7fc02 to your computer and use it in GitHub Desktop.
Function Inception
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)); | |
} | |
var in_a_cruel_manner = pejorative("humane"); // should be "inhumanely" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment