After solving the exercise on this challenge here, my code works fine. However, in addition to the expected result of the code, I keep getting Undefined
below it. What could be the problem?
My code is below
const toEmoticon = beep => {
switch (beep){
case "shrug":
console.log('|_{"}_|');
break;
case "smiley face":
console.log(':)');
break;
case "frowny face":
console.log(':(');
break;
case "heart":
console.log('<3');
break;
default:
console.log('|_(* ~ *)_|');
break;
}
};