You can only modify these variables from the methods inside this particular class. Similarly, you can have private methods as well. You can say something function on click() and then you can define everything you want in this method. And again, this method could only be called from inside this class itself, not from the object in the outside world and the only thing you have to do is put a hash symbol over there.
Another feature which we have over here is the ability to have starting and ending indexes from your regular expression execution. So what this new feature would allow us to do is pass a new flag called a d flag, which would enable the matching indexes. And Of course this will not work right now again because this feature is not shipped, but this should work. Start working again 4 to 8 to twelve months, how many months it take for them to ship this and make it available with within node abd browsers and everything.
That’s pretty much it for this article. Hopefully you are excited about some of these new features of ES2022. If you are, let me know in the comments below what do you think about this?
Pingback: What's New In Node.js Version 18 - TechWithAndy