5

https://stackoverflow.com/questions...

JavaScript sure is a pain in the butt when it also throws errors depending if you are in a REPL or not.

Hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh.

Comments
  • 2
    JavaScript has a lot of funky tricks that make it easier to write, like hoisting. You can call a function before it’s defined in a JavaScript file, which is funny for a scripting language and obviously won’t work quite as well in a REPL
  • 1
    @whimsical Yeah I agree that's probably what happened (or he got a cached js file first)

    Also not using a `let` or `var` does declare the property in my REPL

    Also dude doesn't know `delete` exists
Add Comment