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
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 !
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!
While editing the middle digit after intl.format the cursor moves to end position how can we persist the cursor position
🤔 I'm not sure I understand?
Well Explained bro :) you got new sub!!! Btw What's that theme in VS code o_o?
Thanks so much! Theme is Monokai Pro (~$10 USD).
@@CodinginPublic Ok, Thanks!
Hello sir wich theme you using in vs code
Monokai Pro (~$10) with the Octagon variant.
awesome!
Glad you enjoyed it!
plugin name pls
Quokka
Can you tell me the font you use for VS code ? Thank you.
Cascadia Code, a free font by Microsoft.
I find your video so useful for me. 😄👍
Thank you for that
But btw what is the name of the font you are using??
Glad it was a help! It’s called Cascadia Pro (free by Microsoft)
@@CodinginPublic thanks, you are the best
Sorry-just realized this went to spam for some reason. I just uploaded a video explaining this today. ruclips.net/video/5uETTXxVj8s/видео.html