emoji-translate.js
function getEmojiForWord(word) {
  let translations = getAllEmojiForWord(word);
  return translations[Math.floor(Math.random() * translations.length)];
}
function getEmojiForWord(word) {
  let translations = getAllEmojiForWord(word);
  return translations[Math.floor(Math.random() * translations.length)];
}
function getEmojiForWord ( word ) { let translations = getAllEmojiForWord ( word ) ; return translations [ Math . floor ( Math . random ( ) * translations . length ) ] ; }
Returns a random emoji translation of an english word.
@param {String} word The word to be translated.
@returns {String} A random emoji translation or '' if none exists.
Returns a random emoji translation of an english word .