Created
September 1, 2018 19:19
-
-
Save siddrc/acb9750d2cf65e87eb4f5836da836538 to your computer and use it in GitHub Desktop.
map-example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const map = { | |
"TCS" : "Tata Consultancy Services", | |
"SUN" : "Stanford University Networks" | |
} | |
function getCompanyName(abbr){ | |
return map[abbr] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment