Formatting lists and numbers in JavaScript with the Intl API

Поделиться
HTML-код
  • Опубликовано: 10 сен 2024
  • Most of the times when you’re dealing with data as a front-end web dev, you’re either looping through or manipulating data for formatting it to fit your needs. The Intl API provides a built-in way to list array items in natural language or to format currency. I'll show you two of the possible options in this video. Check out additional ones with the doc link below.
    🔗 Key Links 🔗
    - Blog article: chrispenningto...
    - MDN docs for Internationalization API: developer.mozi...
    - MDN doc for ListFormat: developer.mozi...
    - MDN doc for .toLocaleString: developer.mozi...
    ---------------------------------------
    🌐 Connect With Me 🌐
    - Website: www.codinginpu...
    - Blog: www.chrispenni...
    - Twitter: / cpenned

Комментарии • 19

  • @wally-the-web-dev5142
    @wally-the-web-dev5142 2 года назад +2

    Really good way to teach - to many videos gloss over details assuming you have a level of knowledge - 20 sections and everyone is now aware of what your talking about - awesome work !

    • @CodinginPublic
      @CodinginPublic  2 года назад

      Glad it was a help! Yeah-it's always hard to know how to pitch things since every single viewer is at a different place, so I'm glad to know this hit the right spot for you! Thanks for saying something!

  • @harshavarthanm1845
    @harshavarthanm1845 2 года назад

    While editing the middle digit after intl.format the cursor moves to end position how can we persist the cursor position

  • @unitechs1213
    @unitechs1213 2 года назад +1

    Well Explained bro :) you got new sub!!! Btw What's that theme in VS code o_o?

    • @CodinginPublic
      @CodinginPublic  2 года назад +1

      Thanks so much! Theme is Monokai Pro (~$10 USD).

    • @unitechs1213
      @unitechs1213 2 года назад

      @@CodinginPublic Ok, Thanks!

  • @neerajlehar6399
    @neerajlehar6399 2 года назад

    Hello sir wich theme you using in vs code

    • @CodinginPublic
      @CodinginPublic  2 года назад

      Monokai Pro (~$10) with the Octagon variant.

  • @dunder9444
    @dunder9444 2 года назад

    awesome!

  • @rewarewa7039
    @rewarewa7039 2 года назад +1

    plugin name pls

    • @ikai2
      @ikai2 2 года назад +1

      Quokka

  • @NguyenLam-vz9nb
    @NguyenLam-vz9nb 2 года назад

    Can you tell me the font you use for VS code ? Thank you.

    • @CodinginPublic
      @CodinginPublic  2 года назад +1

      Cascadia Code, a free font by Microsoft.

  • @cranberry888
    @cranberry888 2 года назад

    I find your video so useful for me. 😄👍
    Thank you for that
    But btw what is the name of the font you are using??

    • @CodinginPublic
      @CodinginPublic  2 года назад

      Glad it was a help! It’s called Cascadia Pro (free by Microsoft)

    • @cranberry888
      @cranberry888 2 года назад

      @@CodinginPublic thanks, you are the best

    • @CodinginPublic
      @CodinginPublic  2 года назад

      Sorry-just realized this went to spam for some reason. I just uploaded a video explaining this today. ruclips.net/video/5uETTXxVj8s/видео.html