Typing manually in inline code generates wrong code

Steps to reproduce:

  1. Prepare a blank page
  2. Type manually, with the quote on the keyboard, console.log("hello") (including ` at the begin and the end to mark it as inline block)
  3. Open Chrome, press F12 to bring up the Dev Tools, select tab Console, copy and paste the above text to the input, press ENTER to run

Expected: text hello appears
Actual: error Uncaught SyntaxError: Invalid or unexpected token