DEV Community

Discussion on: jQuery to ES6 and what if you don’t need a JS framework…

 
joethom profile image
Joe Thom

The 😈 is always in the details..

Agree that there are probably too many miscellaneous let's lying around.. For the window objects I guess I see them as constants in some ways - as in they are used throughout the application and shouldn't be changed, however they are appended to so perhaps uppercase is not appropriate.

The try catch is more to stop the whole thread crashing (known potential other issue..) if there is an error within a function handler. And with the comment's style it was more for the purpose of this article rather than for production, but none the less a good point.

Really appreciate the feedback, will keep you posted if we manage to open source it ✨