title: Why is this "Hello, World!" JavaScript code fragment recognized as an acceptable program instruction?
body: <p>Recently a coworker showed this fragment of JavaScript code: </p>
  
  <pre class="lang-js prettyprint-override"><code>greet = "‮".toString.bind("hello world!")
  </code></pre>
  
  <p>If you paste this inside the Developer Console and execute it will print a "Hello, World!" message:</p>
  
  <pre class="lang-js prettyprint-override"><code>&gt;&gt; console.log(greet())
  hello, world!
  </code></pre>
  
  <p>Another interesting thing I found is that if you paste the same <code>greet</code> code inside Node.js REPL it will automatically transpile it to a "readable" format.</p>
  
  <p>How does this work? Why is this behaviour possible in a browser and why does Node.js automatically format it?</p>