 
          
              Since it’s birth 26 years ago at Netscape, JavaScript has come a long way. A language which was used only to interact with Java applets and do simp...
              
        
    
  For further actions, you may consider blocking this person and/or reporting abuse
 
 
    
Some example with
withTo watch Object change, you can also
Object.definePropertyGreat list, I didn't have a clue about some of those :)
One other way of doing a "with like thing" having a go at the C# syntax I've seen is this:
That's nice!
Don't forget
letandconstare already block scoped, so a simple alternative to yourletblock example is this:You're right, thanks - I'll update the article now.
Yup, that's another way of doing it - although that will return
in the browser since
locationis a global property - we can rename it to something else though.I've to say JavaScript changed so much that its hard to keep track of what have changes... But
Proxything is just blew my mind. I never knew it was available. Thanks a lotThanks! This was very informative.
HTML wrapper methods on strings: "There are no alternatives for this monstrosity." Hahah 🤣 Wow, never knew they even exist tbh. Great stuff, thanks!
👍🏽
Awesome article!
great post thanks .
Nice post! Some of those are obscure, did not now a couple of them
Glad you liked it!
I only knew about with, which is used sometimes on code golfing 🙂 Nice article!
Great post! I thought 'with' was a fever dream from my teenage years.
You're welcome!