Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function phoneticLookup(val) {
- switch(val) {
- case "alpha": return "Adams";
- case "bravo": return "Boston";
- case "charlie": return "Chicago";
- case "delta": return "Denver";
- case "echo": return "Easy";
- case "foxtrot": return "Frank";
- }
- }
- console.log(phoneticLookup("alpha"));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement