Exciting New Javascript Concepts
Exciting New Javascript Concepts
www.yasirnawaz.me
@sudoyasir
1/9
Yasir N.
www.yasirnawaz.me
@sudoyasir
2/9
Yasir N.
www.yasirnawaz.me
@sudoyasir
3/9
Yasir N.
www.yasirnawaz.me
@sudoyasir
3. BigInt
A new numeric primitive in JavaScript, BigInt is used to
represent integers with arbitrary precision, allowing for accurate
calculations with large integers.
4/9
Yasir N.
www.yasirnawaz.me
@sudoyasir
4. globalThis
A new global object, globalThis, provides a way to access the
global object in a way that's compatible with modern
JavaScript environments.
5/9
Yasir N.
www.yasirnawaz.me
@sudoyasir
5. matchAll()
A new method on the String prototype, matchAll() returns an
iterator that yields matches of a regular expression against a
string, including capturing groups.
6/9
Yasir N.
www.yasirnawaz.me
@sudoyasir
6. Promise.allSettled()
A new method on the Promise API, allSettled() returns a promise
that is resolved when all of the promises in an array are either
resolved or rejected.
7/9
Yasir N.
www.yasirnawaz.me
@sudoyasir
7. String.prototype.at()
A new method on the String prototype, at() returns the
character at the specified index, allowing for negative indices to
access characters from the end of the string.
8/9
Yasir N.
www.yasirnawaz.me
@sudoyasir
8. Error Cause
A new property on Error objects, cause allows you to specify the
underlying cause of an error.
9/9