Fireship · @fireship
10 JavaScript changes you missed in 2023
Uploaded November 27, 2023 · Length 5:56
Summary
10 recent JavaScript changes you may have missed in 2023, including new language features and framework updates.
- javascript changes 2023
- javascript framework updates
- nextjs app directory
- spelt runes
- angular template syntax
- nodejs permissions model
- bun javascript runtime
- hdmx framework
- javascript development
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:00
2023 has been a wild Year my bank
- 0:02
collapsed Elon bought Twitter almost all
- 0:04
my friends got laid off all my favorite
- 0:06
crypto Bros are going to jail Tesla
- 0:08
successfully made it the DeLorean with a
- 0:09
Pontiac Aztec bringing us the Cyber
- 0:11
truck and chat GPT made me obsolete but
- 0:14
all this good news pales in comparison
- 0:15
to the changes web developers have seen
- 0:17
in JavaScript land over the last year
- 0:19
where almost every framework decided to
- 0:21
reinvent itself in 2023 in today's video
- 0:23
we'll look at 10 recent changes to
- 0:25
JavaScript that you may have missed
- 0:27
every year new language features get
- 0:28
standardized in ecmascript at which
- 0:30
point they're implemented in browsers
- 0:32
one of my favorite new features this
- 0:33
year is object Group by imagine you have
- 0:35
an array of objects where the objects
- 0:37
share a similar schema these might be
- 0:39
records from a database where every
- 0:41
object has a field of age you can use
- 0:43
groupy to separate the children from the
- 0:45
adults by defining a function that
- 0:47
groups anyone under 21 into children and
- 0:49
anyone over that into adults the end
- 0:51
result is an object organized into
- 0:53
groups that's a nice little utility but
- 0:55
one I find myself using even more often
- 0:57
is array two sorted along with two
- 0:59
splice and two reversed JavaScript
- 1:01
already had methods for sort and
- 1:03
reversed but the problem is that they
- 1:05
mutate the original array in place and
- 1:07
that's confusing because other methods
- 1:08
like map and filter don't do that
- 1:10
instead they copy the array and return a
- 1:12
new one with these methods you can now
- 1:14
sort reverse and splice an array by
- 1:15
treating the original as an immutable
- 1:17
value which tends to be the more sane
- 1:19
way to write your code web developers
- 1:21
also got some cool updates in the form
- 1:22
of brand new HTML elements like the
- 1:25
search tag is a more semantic way to
- 1:27
define a search box on a website which
- 1:29
can replace the more generic form tag
- 1:31
that's nice but the dialogue element is
- 1:32
way more powerful which allows you to
- 1:34
create actual modal dialogues and then
- 1:36
control them with JavaScript using
- 1:38
built-in methods like show modal and
- 1:40
close another nice utility but that
- 1:42
brings us to index 3 after years of
- 1:44
begging and pleading with Apple iOS
- 1:46
finally allows push notifications to
- 1:47
come from web apps and that's a huge win
- 1:49
for the
- 1:50
0.00001% of website users who actually
- 1:53
allow websites to send them push
- 1:54
notifications which is most likely your
- 1:56
grandpa who accidentally clicked the
- 1:58
allow button and now has no idea how how
- 1:59
to turn it off but now it's time to talk


