You are viewing a single comment's thread. Return to all comments →
Without "switch", but I am lazy and always try for shorter option :)
let allLetters = "aeioubcdfghjklmnpqrstvwxyz" let resLetters = ["A", "B", "C", "D", "D", "D"] return resLetters[Math.floor(allLetters.indexOf(s[0]) / 5)]
Seems like cookies are disabled on this browser, please enable them to open this website
Day 2: Conditional Statements: Switch
You are viewing a single comment's thread. Return to all comments →
Without "switch", but I am lazy and always try for shorter option :)