Fireship · @fireship

10 JavaScript changes you missed in 2023

Uploaded November 27, 2023 · Length 5:56

10 JavaScript changes you missed in 2023

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.

  1. 0:00

    2023 has been a wild Year my bank

  2. 0:02

    collapsed Elon bought Twitter almost all

  3. 0:04

    my friends got laid off all my favorite

  4. 0:06

    crypto Bros are going to jail Tesla

  5. 0:08

    successfully made it the DeLorean with a

  6. 0:09

    Pontiac Aztec bringing us the Cyber

  7. 0:11

    truck and chat GPT made me obsolete but

  8. 0:14

    all this good news pales in comparison

  9. 0:15

    to the changes web developers have seen

  10. 0:17

    in JavaScript land over the last year

  11. 0:19

    where almost every framework decided to

  12. 0:21

    reinvent itself in 2023 in today's video

  13. 0:23

    we'll look at 10 recent changes to

  14. 0:25

    JavaScript that you may have missed

  15. 0:27

    every year new language features get

  16. 0:28

    standardized in ecmascript at which

  17. 0:30

    point they're implemented in browsers

  18. 0:32

    one of my favorite new features this

  19. 0:33

    year is object Group by imagine you have

  20. 0:35

    an array of objects where the objects

  21. 0:37

    share a similar schema these might be

  22. 0:39

    records from a database where every

  23. 0:41

    object has a field of age you can use

  24. 0:43

    groupy to separate the children from the

  25. 0:45

    adults by defining a function that

  26. 0:47

    groups anyone under 21 into children and

  27. 0:49

    anyone over that into adults the end

  28. 0:51

    result is an object organized into

  29. 0:53

    groups that's a nice little utility but

  30. 0:55

    one I find myself using even more often

  31. 0:57

    is array two sorted along with two

  32. 0:59

    splice and two reversed JavaScript

  33. 1:01

    already had methods for sort and

  34. 1:03

    reversed but the problem is that they

  35. 1:05

    mutate the original array in place and

  36. 1:07

    that's confusing because other methods

  37. 1:08

    like map and filter don't do that

  38. 1:10

    instead they copy the array and return a

  39. 1:12

    new one with these methods you can now

  40. 1:14

    sort reverse and splice an array by

  41. 1:15

    treating the original as an immutable

  42. 1:17

    value which tends to be the more sane

  43. 1:19

    way to write your code web developers

  44. 1:21

    also got some cool updates in the form

  45. 1:22

    of brand new HTML elements like the

  46. 1:25

    search tag is a more semantic way to

  47. 1:27

    define a search box on a website which

  48. 1:29

    can replace the more generic form tag

  49. 1:31

    that's nice but the dialogue element is

  50. 1:32

    way more powerful which allows you to

  51. 1:34

    create actual modal dialogues and then

  52. 1:36

    control them with JavaScript using

  53. 1:38

    built-in methods like show modal and

  54. 1:40

    close another nice utility but that

  55. 1:42

    brings us to index 3 after years of

  56. 1:44

    begging and pleading with Apple iOS

  57. 1:46

    finally allows push notifications to

  58. 1:47

    come from web apps and that's a huge win

  59. 1:49

    for the

  60. 1:50

    0.00001% of website users who actually

  61. 1:53

    allow websites to send them push

  62. 1:54

    notifications which is most likely your

  63. 1:56

    grandpa who accidentally clicked the

  64. 1:58

    allow button and now has no idea how how

  65. 1:59

    to turn it off but now it's time to talk