Newsletter 2024 #5

7 little-known Console methods in JavaScript

Can you solve this coding puzzle?

Featured content

With this new slice notation you’ll stop writing slice() code like this:

And start writing code like this:

Much shorter, readable and intuitive.

And we don’t even have to wait till it officially arrives — we can have it right now.

Where did we come from on the call stack? Let’s trace() our steps back!

Fantastic for debugging:

Keeping imports at the top-level was no longer a must; We could now easily resolve the module's name at compile time.

Loading modules optionally and only when absolutely needed for high-flying performance…

ES10’s flat() and flatMap() gave much cleaner ways to easily flatten multidimensional arrays.

Eradicating the need for painful array-looping flattening code:

flatMap() is as good as calling map(), then flat(1):

Facebook icon
Twitter icon
LinkedIn icon