Skip to content

Instantly share code, notes, and snippets.

@adellhk
Created September 21, 2015 03:22
var inputCleaned = input.prompt.toLowerCase().replace(/\s+/g, '')
switch (inputCleaned) {
case 'uninspired':
alert(response.uninspired);
break;
case 'lackofpassion':
alert(response.noPassion);
break;
// etc...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment