Miscellany
T.J. Crowder · 2020
BigInt is a new primitive type for working with large integers in JavaScript, added in ES2020. BigInt can hold any size of integer, limited only by available memory and/or a reasonable limit imposed by the JavaScript engine's implementers. ES2015 added a whole range of new functions to the Math object. In general, they fall into: general math functions and functions to support low-level code, such as digital signal processing and code compiled to JavaScript from other languages. This chapter discusses recent syntax tweaks such as nullish coalescing, optional chaining, and optional catch bindings. It describes various new methods becoming available in JavaScript's standard library including symbol.hasInstance and symbol.unscopables. The chapter also discusses browser-only features and tail call optimization, which is primarily useful in situations involving recursion.