21 Day Coding Challenge

Challenge 20 "invalid or unexpected token"


I think I am close but I keep getting invalid or unexpected token. What am I not seeing?

function decodeMessage(message) {
var msg = message;
msg = msg.split(‘1’).join(‘i’)
return msg;


Hi Jessica,
That’s an interesting approach :slight_smile: The only thing that seems to be missing is the case for 0.

1 Like

Thank you! It worked!

1 Like