title: How can I call a function outside of the prototype in JavaScript?
body: <p>How can I call the <code>setTile</code> function outside of the scope of <code>TopDownGame</code>? I tried <code>TopDownGame.Lesson31.setTile(x,y)</code>, but it doesn't work.</p>
  
  <pre><code>var TopDownGame = TopDownGame || {};
  
  TopDownGame.Lesson31 = function() {};
  
  TopDownGame.Lesson31.prototype = {
      setTile: function(x, y) {
          console.log(tile);
      }
  };
  </code></pre>