NEW Practical JavaScript features in 2023
MDN Links:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#numeric_separators
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function
https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment
New practical JavaScript features available in 2023
JavaScript 2023
A few features that can be used in many cases at this point. Examples and current support
- Optional chaining "?" operator
- Numeric separators 100_000_000_000
- async/await with fetch() For asynchronous functions that use promise-based APIs
- Array Destructuring assignment var newArray = [1, 2, ...oldArray]