Thursday, January 4, 2024
JS feature roundup, the growth mindset, and autosave woes ![Logo](https://mcusercontent.com/42d7a8f52e460525417e7989f/images/86f484bb-4113-1c0a-4426-5d578e5ad095.png) | Coding quiz | | ![](https://mcusercontent.com/42d7a8f52e460525417e7989f/images/1d5085c0-2262-1031-ea0e-6f655e81d0d3.png) | Promoted Surfshark: Get robust antivirus protection with Surfshark One. Scan files while downloading, enjoy webcam protection, and shield against new viruses. Save 73% off now. | Featured content | | ![](https://mcusercontent.com/42d7a8f52e460525417e7989f/images/7433677a-806a-f6aa-2a41-16163f945c73.png) | There were all about writing shorter, safer, and more expressive code.
1.Private methods and fieldsWith ES2022, we can now add private fields and members to a class, by prefixing it with a hashtag (#). Trying to access them from outside the class will cause an error: | ![](https://mcusercontent.com/42d7a8f52e460525417e7989f/images/aaeed0c6-65b3-40f8-936f-f6ffc648ef5e.png) | 2.Promise.any()If you know Promise.all(), then you can easily guess what this does: wait for one Promise to resolve and return the result. | ![](https://mcusercontent.com/42d7a8f52e460525417e7989f/images/f9dec286-8cde-28ee-030c-8cb8d9924978.png) | | | ![](https://mcusercontent.com/42d7a8f52e460525417e7989f/images/a1994986-c0ca-41e5-5c79-c1225538fd1f.png) | What if we see coding as a delicate act of nurturing, a digital development brought about by our creativity and the intricate logical reasoning of our minds? | With every single line of code added, deleted, and refactored, the software grows into greatness. With every additional library, package, and API fastened into place, low-level combines into high-level; the big picture unfolds; a fully formed digital creation emerges. | | | ![](https://mcusercontent.com/42d7a8f52e460525417e7989f/images/9ebab91f-2196-bf2b-b933-44944a4bd62d.png) | 1.I actually don't have unlimited CPU and RAMYou can't dare call VS Code a "text editor" in 2023; The bloat is real.
Thanks to Electron, we now live in an era where a near-empty app boasts installation sizes of almost 100MB and proudly gobbles as much as 500MB of RAM.
What do you think will happen when a build watcher like Create React App is also running? Or a massive memory hog like the Android emulator, constantly reloading on every autosave? | ![](https://mcusercontent.com/42d7a8f52e460525417e7989f/images/94ac2a93-27a1-c832-68f8-401b2d44251d.png) | | On Twitter | ![](https://mcusercontent.com/42d7a8f52e460525417e7989f/images/2d662b5c-cef9-e7c8-7601-047f3b6c5079.png) | | | | | | |
|
|
|
| |
0 Komentar untuk "👑Top 10 new JavaScript features (2021 to 2023)"