4

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
    Nah, he refreshed in between I guess having the variable once declared and other times not. I wrote complete Ext applications in REPL. Amazing time. When done copied the app to a file. That was quick and comfy js development. Ext was hated because of it's learning curve, but it offered a lot. React on the other hand.. I really don't see any point of using that system and especially not in the way it works. I'm so sure you can develop better without react if you know "the way".
  • 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