Social Media Style Number Formatting in JS

Sdílet
Vložit
  • čas přidán 3. 09. 2022
  • Learn how to format numbers like 1.2K or 2.3M using the JavaScript Internationalization API.
    #JavaScript #Tutorial
    Intl API developer.mozilla.org/en-US/d...

Komentáře • 323

  • @chombazm
    @chombazm Před rokem +593

    As long as its Fireship🥂

    • @offfkey6174
      @offfkey6174 Před rokem +12

      Fireship changed how digest content. This channel is a blessing!

    • @codernerd7076
      @codernerd7076 Před rokem +4

      It goes beyond... Fireship so its even better!!!

    • @chombazm
      @chombazm Před rokem +1

      @@codernerd7076 🚀🚀

    • @ninhdang1106
      @ninhdang1106 Před rokem +3

      Fireship to me is as essential as the news on the TV my parents watch

    • @oussama40612
      @oussama40612 Před rokem +1

      'Beyond Fireship'.toLowerCase().includes('fireship')

  • @durcodavid
    @durcodavid Před rokem +131

    What's really cool is that you can just set the first argument of formatter to null and it will automatically detect language from the user agent.

    • @etcroot
      @etcroot Před rokem +6

      null is the biggest hero here

    • @ilmanti
      @ilmanti Před rokem +1

      @@etcroot what do you mean "here"? null is a hero everywhere all the time.

    • @_karansable_
      @_karansable_ Před rokem

      I was about to stackoverflow this exact same thing but first decided to comment my question but found the solution too. Thanks man!

    • @leondu
      @leondu Před rokem

      Are you sure? The js engine is giving me "TypeError: Cannot convert undefined or null to object"

  • @quatricise
    @quatricise Před rokem +116

    This is legit the best news I've heard today. I think I'm going to enjoy this even more than the main channel, which isn't super useful to me, since so much of it is introductory videos to random programming languages.

    • @vaisakhkm783
      @vaisakhkm783 Před rokem

      news?

    • @lianecx
      @lianecx Před rokem

      I actually need this so much im crying

    • @LinkEX
      @LinkEX Před rokem +1

      I literally got this in my recommendations below The Queen dying.

    • @krismatic_
      @krismatic_ Před rokem +5

      I see the main channel as the most informative and enjoyable programming content on youtube.

    • @animeforever8508
      @animeforever8508 Před rokem

      Hahahaha so true

  • @root_pierre
    @root_pierre Před rokem +42

    Love your boundless energy that spills over into teaching. I always say I work in order to make myself obsolete by transferring skills. Love your art

  • @alexradu1921
    @alexradu1921 Před rokem

    a second fireship channel is like gift we never knew we wanted

  • @SamFishback
    @SamFishback Před rokem +7

    Specialized and useful. Thank you. Looking forward to more content like this

  • @birdpump
    @birdpump Před rokem

    these short videos about individual features are very cool keep it up man

  • @GPT-X938
    @GPT-X938 Před rokem

    I’ve been working with JavaScript for years and have never used/heard of this API, thank you!

  • @darkhacks5743
    @darkhacks5743 Před rokem +5

    268th subscriber. This channel is gonna skyrocket in a couple days

  • @NeetCode
    @NeetCode Před rokem +19

    The JS 🐐 cant wait to use your JS framework one day ;)

  • @juleswinnfield1437
    @juleswinnfield1437 Před rokem

    Loving the new channel, keep it up!

  • @ThomPorter74
    @ThomPorter74 Před rokem

    Had no idea this was available! Love it & the new channel! Keep up the good work.

  • @doonk6004
    @doonk6004 Před rokem

    Based on your first 3 videos, this new channel is going to be awesome! Keep up the excellent content! 👏

  • @gg1bbs
    @gg1bbs Před rokem

    You have my sub for this any any other project into the future. Thanks for all the amazing videos tutorials over the years!!

  • @mendesdotdev
    @mendesdotdev Před rokem

    Never thought I would get that hyped for a new coding channel 🚀

  • @beowoke
    @beowoke Před rokem

    I added this to my Watch Later list a couple days ago, then today I’m working on a project and want to do this exact thing. You always know what to put out at just the right time xD

  • @MatanPresberg
    @MatanPresberg Před rokem

    I used this today! Came back to this video to remember how to do it. Thanks! :D

  • @captain_v7483
    @captain_v7483 Před rokem

    This is great. Also your channel description cracks me up. On point.

  • @nabiisakhanov3522
    @nabiisakhanov3522 Před rokem

    Jeff, man, so glad you made this channel, even helps me get over a horrible breakup

  • @ezsnova
    @ezsnova Před rokem

    This was, unexpectedly, really helpful.

  • @himabimdimwim
    @himabimdimwim Před rokem

    Heck yeah! I'm excited for this new channel!!

  • @AByteofCode
    @AByteofCode Před rokem

    The main fireship channel inspired me to start youtubing, so I'm glad there's even more fireship on the web now!

  • @ismailMerced
    @ismailMerced Před rokem

    What an amazing opening for new channel 🚀

  • @realthunder6556
    @realthunder6556 Před rokem

    Not even subscribed to the main channel, I get every new video on my recommended.But now I am subscribed to beyond Fireship

  • @chase1116
    @chase1116 Před rokem

    Short and informative as always, I love it

  • @bearfinn
    @bearfinn Před rokem +1

    I don't see why videos like this couldn't be on the main channel. It's like xxxx in 100 seconds and all.
    Anyway, subscribed to both!

  • @fixer8173
    @fixer8173 Před rokem

    Different channel, the same quality, love it :)

  • @dylanrandle
    @dylanrandle Před rokem

    You’re so awesome man, thank you for all of your work

  • @AkshayAradhya
    @AkshayAradhya Před rokem

    I am here to stay. Subscribed even before watching the video.

  • @hmmhm6620
    @hmmhm6620 Před rokem

    Holy shit. Holy cow. I can't even think of the number of ways I'll use this. Thanks!!!

  • @re.liable
    @re.liable Před rokem

    I'm happy this got recommended to me

  • @blueguy5588
    @blueguy5588 Před rokem

    Extremely useful, thank you!

  • @koko5498
    @koko5498 Před rokem

    I believe this will be a great channel.

  • @aliosman975
    @aliosman975 Před rokem

    I will have to use this soon and never heard about it before thank you ❤️

  • @alexandersumczynski7477

    love already this channel!!

  • @diegolikescode
    @diegolikescode Před rokem

    I'm very happy to say that only one fireship is not enough for me neither, keep it pumpin' bro

  • @yanukadeneth99
    @yanukadeneth99 Před rokem

    Thanks for this. Hoping to learn some things that will make me question about life at 3 in the morning :)

  • @unl0ck998
    @unl0ck998 Před rokem

    Yayyy can never get enough of Fireship! Also thanks for this info :)

  • @gavinmurambadoro
    @gavinmurambadoro Před rokem

    Interesting to see my ZWD popping up in javascripyt tutorials. Good jobs

  • @guillaume5623
    @guillaume5623 Před rokem

    Let's goooo random stuff ! Love it

  • @toshitsingh7270
    @toshitsingh7270 Před rokem

    Looking forward to nextjs 13 tutorial!!

  • @quinndirks5653
    @quinndirks5653 Před rokem

    I just learned something new about javascript.

  • @tinayetsinakwadi8906
    @tinayetsinakwadi8906 Před rokem

    😂😂😂
    Thank you so much for using my currency. Somehow felt inspired after watching your video on a coding break. 🇿🇼

  • @alsadqahmd777
    @alsadqahmd777 Před rokem

    that a great news, I am very exited for this one.

  • @shateq
    @shateq Před rokem +1

    Let this channel grow!

  • @attackemartin
    @attackemartin Před rokem

    Uh. One of the first 2.2k subs 🔥

  • @dejoneltahan1974
    @dejoneltahan1974 Před rokem +2

    thank you for introuducing me to code faster.

  • @naveed-h
    @naveed-h Před rokem

    Yeeeesssss..... This is the channel I needed...

  • @sushilakaushik1867
    @sushilakaushik1867 Před rokem +1

    Fantastic, adbhut

  • @dianrahmaji
    @dianrahmaji Před rokem

    this is what i need just now!

  • @thelonedev
    @thelonedev Před rokem +1

    actually i gonna need this in few days 🍷

  • @maazkhan9512
    @maazkhan9512 Před rokem

    Thanks for everything, great work

  • @ahmedmeeran8607
    @ahmedmeeran8607 Před rokem

    This channel is awesome

  • @yogenp
    @yogenp Před rokem

    new channel? Awesome

  • @king-power
    @king-power Před rokem

    அருமையான சேனல். 🙏🙏🙏

  • @thebigzet3265
    @thebigzet3265 Před rokem

    Great, now I need this cor Lua :D

  • @xiaoshen194
    @xiaoshen194 Před rokem +21

    You have guided me a lot master. Thank u and love from India 🙏👍

    • @sharmarahul384
      @sharmarahul384 Před rokem +4

      Hey, I am your neighbour. Nepal

    • @xiaoshen194
      @xiaoshen194 Před rokem +5

      @@sharmarahul384 no. Nepal is not my neighbour. I am from South India and it is very very far. But I love Nepal❤️👍

    • @sumitkaranjkar3819
      @sumitkaranjkar3819 Před rokem +3

      @@sharmarahul384 say brother bro

    • @sharmarahul384
      @sharmarahul384 Před rokem +2

      @@sumitkaranjkar3819 ok bro

  • @akcalder92
    @akcalder92 Před rokem

    Love your videos

  • @jonathangamble
    @jonathangamble Před rokem +3

    Pretty Cool!

  • @PhirunTara
    @PhirunTara Před rokem

    One channel really is not enough 😎😎

  • @johnnyt.2523
    @johnnyt.2523 Před rokem +2

    Very cool!

  • @UrbanJackJr
    @UrbanJackJr Před rokem

    Intl was a best discovery in my js carrer

  • @TubularAnimator
    @TubularAnimator Před rokem

    From this video, I learned that in JS I can use "_" in integers >= 1000 as commas.
    Nice to know there's a quicker way to simplify nums.
    This will make my life easier. Thanks for teaching this.

    • @Samuel.55
      @Samuel.55 Před rokem +1

      You can also do it in python

    • @TubularAnimator
      @TubularAnimator Před rokem

      @@Samuel.55 Nice. Then it can probably be done in other languages too.

  • @billal2731
    @billal2731 Před rokem +143

    0:38 i'd love to know what extension you used to show the console.log(n) output directly in the code (1.6k)

    • @SeanCassiere
      @SeanCassiere Před rokem +74

      Probably Quokka

    • @billal2731
      @billal2731 Před rokem +5

      @@SeanCassiere thanks

    • @yxshv
      @yxshv Před rokem +3

      quokka

    • @chizuru1999
      @chizuru1999 Před rokem +3

      If you are into coding and practicing stuff in js. Here is a server I made which runs any file on save. Cause quokka didnt output me in required time and other software like runjs is paid.
      Dharmang92/code-server.

    • @Just_Moh_it
      @Just_Moh_it Před rokem

      @@yxshv ah found you

  • @paulholsters7932
    @paulholsters7932 Před rokem +1

    very useful Intel thx

  • @butterfly7562
    @butterfly7562 Před rokem

    Oh what I found!Another channel of Fireship is too cool and very valuable. I think you should mention this channel a little on the main channel

  • @stvlley
    @stvlley Před rokem

    Honored to be here

  • @masadamsahid
    @masadamsahid Před rokem

    Whoaa.. I love this

  • @treyquattro
    @treyquattro Před rokem

    learned something (as always), subscribed (can only do that once per channel, unfortunately)

  • @unknownlordd
    @unknownlordd Před rokem

    Ok this was really cool and fun

  • @JustPyroYT
    @JustPyroYT Před rokem

    175th subscriber :D

  • @ce9916
    @ce9916 Před rokem

    8 people missed the like button by a few pixels. Thanks for that great vid

  • @rickyu1978
    @rickyu1978 Před rokem

    I read the blog post, great copy.

  • @mightylinsomniak3464
    @mightylinsomniak3464 Před rokem

    liked, subbed and bell notifs activated

  • @DanelonNicolas
    @DanelonNicolas Před rokem

    Amazing 😍👌🏻

  • @chewcodes
    @chewcodes Před rokem

    Watching this 4000 times to make sure you have enough watch time to get monetization rolling, I'm excited!

  • @JabatoForever
    @JabatoForever Před rokem

    The cocktails guy is a legend

  • @AniketSingh-hr8mi
    @AniketSingh-hr8mi Před rokem +1

    Remember us. Your very first subscribers and supporters

  • @0xtz_
    @0xtz_ Před rokem

    Amazing 👌

  • @Vorono4ka
    @Vorono4ka Před měsícem

    Thank you so much!

  •  Před rokem

    Hey Jeff
    I just want to say that I have so much random stuff in your mind that I want to learn, so one channel is not enough.
    Subbed and tuned up 🤩🤩

  • @ThanHtutZaw3
    @ThanHtutZaw3 Před rokem

    I like this channel than old

  • @KhoPhi
    @KhoPhi Před rokem

    Happy to say, I'm the 154th subscriber. Let's goooo

  • @Chillycloth
    @Chillycloth Před rokem

    Wonderful 😊

  • @hardeylim
    @hardeylim Před rokem

    The best!

  • @MelvinG24
    @MelvinG24 Před rokem

    Love it ❤️

  • @o_o_f_c_i4822
    @o_o_f_c_i4822 Před rokem +1

    Amazing

  • @Khusyasy
    @Khusyasy Před rokem

    thanks for this info, i usually just search packages that can do the thing, but apparently native js has that functionality

  • @magicswallowtail1628
    @magicswallowtail1628 Před rokem

    I thought it is some poser at first but when I heard the voice, I auto subscribed.

  • @Frost_Byte_Tech
    @Frost_Byte_Tech Před rokem +1

    Omg I hit that subscribe button faster than you can imagine 😂

  • @talhaibnemahmud
    @talhaibnemahmud Před rokem

    As long as it has Fireship in the name, Subs & notifications are on 🔥

  • @quintencabo
    @quintencabo Před rokem

    Great!!!

  • @zoefyt
    @zoefyt Před rokem

    Absolute goat.

  • @anazi
    @anazi Před rokem

    Wow ! I always avoid asking the developers team to do it because I thought it takes for ever for them to do it.
    Now it will be the first thing I require in any product.

    • @anazi
      @anazi Před rokem

      The time has came where I learned actually React-Native and connected to firebase cloud, and now I pulling some data to represent (Social Media style) and I came back to the video only to see myself writing that it was easy !! NOPE it is not.

  • @EHBRod13
    @EHBRod13 Před 3 měsíci

    Holy shit, this is amazing 🎉

  • @garikaib
    @garikaib Před rokem

    Wow thanks for this great tip. As an aside the ZWD is now a defunct currency for obvious reasons (you cannot print trillion dollar notes and expect a currency to survive). The new symbol is ZWL.

  • @lifeisbeautifu1
    @lifeisbeautifu1 Před rokem

    awesome!

  • @danvilela
    @danvilela Před rokem

    I like it!

  • @VijitChandna
    @VijitChandna Před rokem

    136th subscriber!

  • @keremardicli4013
    @keremardicli4013 Před rokem

    subscribed right away