title: Replace all word occurrences with ones from Object literal Dictionary
body: <p>I have a question about accessing individual parts of a JavaScript object.</p>
  
  <pre><code>var dictionary = {
     "gimme": "༼ つ ◕_◕ ༽つ",
     "umadbro": "¯\_(ツ)_/¯",
     "lenny": "( ͡° ͜ʖ ͡°)"
  }
  </code></pre>
  
  <p>So I'm making a program that will print the actual ascii/Uni art when you type its corresponding name (gimme, umadbro, lenny, etc.), however I'm not really sure how to go about doing that. Here's the code I have so far:</p>
  
  <pre><code>function checkCharacter() {
    //Assign $ascii_box variable to ascii-box element
    var $ascii_box = document.getElementById("ascii-box");
  
  //Update value of $ascii_box_value everytime the text field changes
    $ascii_box.on("input", function() {
    var $ascii_box_value = $ascii_box.val();
  });
  
  //Check if value in text box is equal to a name in the dictionary object
    //If equal, print the emote to the screen
    if ($ascii_box_value === dictionary) {
   }
  }
  </code></pre>
  
  <p>How would I be able to access the words in dictionary and have them print out as emotes when entered in the textbox? Thanks in advance for the help!</p>