Social Media Style Number Formatting in JS

Social Media Style Number Formatting in JS

Beyond Fireship

1 год назад

174,718 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@simo6lues
@simo6lues - 11.07.2023 23:20

Bro thinks its him 🔥

Ответить
@SaftpresseWust
@SaftpresseWust - 11.01.2023 02:18

I like the concept of shorter videos

Ответить
@wes555
@wes555 - 03.01.2023 21:48

Zimbabwe dollars 🤣🤣🤣 I live in South Africa and we all know you need a few suitcases of hard cash Z$ to purchase a can of Coke up there.

Ответить
@ezsnova
@ezsnova - 03.01.2023 05:29

This was, unexpectedly, really helpful.

Ответить
@nvogele
@nvogele - 28.12.2022 01:10

Do firebase emulator!

Ответить
@king-power
@king-power - 11.12.2022 12:22

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

Ответить
@MahmudYuldashev
@MahmudYuldashev - 01.12.2022 11:36

Is there such native option in python?

Ответить
@aelohinjuz
@aelohinjuz - 17.11.2022 03:10

E_x_c_e_l_l_e_n_t

Ответить
@akshaypendyala
@akshaypendyala - 11.11.2022 20:24

How about getting daylight time based on countries? Would be so cool

Ответить
@JabatoForever
@JabatoForever - 08.11.2022 09:59

The cocktails guy is a legend

Ответить
@robertandone7057
@robertandone7057 - 03.11.2022 10:51

what do you use to display that console log result directy on the editor?

Ответить
@garikaib
@garikaib - 02.11.2022 21:40

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.

Ответить
@Mannoeu
@Mannoeu - 02.11.2022 19:25

cool

Ответить
@lifeisbeautifu1
@lifeisbeautifu1 - 29.10.2022 14:52

awesome!

Ответить
@toshitsingh7270
@toshitsingh7270 - 28.10.2022 17:14

Looking forward to nextjs 13 tutorial!!

Ответить
@AtulKumar-lw6to
@AtulKumar-lw6to - 21.10.2022 06:03

It's fucking helpful

Ответить
@betahaxor9012
@betahaxor9012 - 20.10.2022 17:12

I dоwnloaded everything is okay

Ответить
@diegolikescode
@diegolikescode - 20.10.2022 01:07

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

Ответить
@samislam2746
@samislam2746 - 19.10.2022 00:10

What's the name of the extension you're using to display the output of the console.log on your code editor?

Ответить
@MatanPresberg
@MatanPresberg - 11.10.2022 02:14

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

Ответить
@DjLeonSKennedy
@DjLeonSKennedy - 05.10.2022 20:15

awesome

Ответить
@jaroslavhuss7813
@jaroslavhuss7813 - 30.09.2022 09:04

How come his VS code shows the results of console log right in the IDE?

Ответить
@Salobrenha
@Salobrenha - 28.09.2022 22:33

hhahahahhahahahah Awesome🤣

Ответить
@StephenGillie
@StephenGillie - 28.09.2022 15:00

That's great for writing these numbers, and I'll definitely be optimizing my numToTextNotation function in Sparational.js. But what about converting "1.6M" back to 1600000 - does internationalization help with that too? My mdArrayToTable and columnMath functions leverages both numToTextNotation and its complement textToNumNotation to perform math on readable graphs. You can give columnMath a column with "1.6 million" in it and divide by 2, and the output will be "800k".

Ответить
@ethangritli3618
@ethangritli3618 - 27.09.2022 02:43

You should share the login with me so we both show how to make blazingly fast applications

Ответить
@ahmedmeeran8607
@ahmedmeeran8607 - 26.09.2022 14:12

This channel is awesome

Ответить
@koko5498
@koko5498 - 26.09.2022 10:17

I believe this will be a great channel.

Ответить
@shaunpx1
@shaunpx1 - 26.09.2022 08:53

Can you do a video on working with advanced abstracts of nested data? Like best patterns for calling and consuming complex super nested data objects and arrays of objects with in arrays of objects that we would usally encounter with real api calls. Also, if you want to add some pepper to it do it with TypeScript and add null checking?

Ответить
@birdpump
@birdpump - 24.09.2022 03:17

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

Ответить
@naveed4541
@naveed4541 - 23.09.2022 20:31

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

Ответить
@anazi
@anazi - 22.09.2022 21:30

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.

Ответить
@AtomTCP
@AtomTCP - 22.09.2022 19:04

record about php

Ответить
@hellogung
@hellogung - 22.09.2022 14:58

as always fireship. 👍

Ответить
@ahmedhafiz2419
@ahmedhafiz2419 - 22.09.2022 06:32

So cool. 😮

Btw, are you using an extension to get real time js console logs?

Ответить
@mazarrugh
@mazarrugh - 21.09.2022 20:36

what is the name of the extention that shows the console.log output in vscode?

Ответить
@asraf2asif
@asraf2asif - 21.09.2022 13:15

const compactNumber = (num) => {
if (num && !isNaN(num)) {
const thousand = 1000;
if (num < thousand) {
return num;
}

const lac = 100 * thousand;
if (num >= thousand && num < lac) {
return (num / thousand).toFixed(2) + 'K';
}

const million = 10 * lac;
if (num >= lac && num < million) {
return (num / lac).toFixed(2) + 'Lac';
}

const crore = 100 * lac || 10 * million;
if (num >= million && num < crore) {
return (num / million).toFixed(2) + 'M';
}

const billion = 100 * crore || 1000 * million;
if (num >= crore && num < billion) {
return (num / crore).toFixed(2) + 'Crore';
}

const trillion = 1 * lac * crore || 1 * thousand * million;
if (num >= billion && num < trillion) {
return (num / billion).toFixed(2) + 'B';
}

if (num >= trillion) {
return (num / trillion).toFixed(2) + 'T';
}
}
};

Ответить
@rickyu1978
@rickyu1978 - 20.09.2022 19:53

I read the blog post, great copy.

Ответить
@waheed1987
@waheed1987 - 19.09.2022 23:47

Unable to find your main fireship channel :D

Ответить
@theodorefredrick7058
@theodorefredrick7058 - 19.09.2022 18:04

lowkey flex 1.5m subs

Ответить
@desirechiduku964
@desirechiduku964 - 18.09.2022 22:48

i'm watching this from zimbabwe and i just noticed you used Zimbabwean currency 🤣🤣🤣🤣, i'm crying right now

Ответить
@wumbl3
@wumbl3 - 18.09.2022 01:00

So I wrote
function numKmb(data) {
const to_str = data.toString();
const str_len = to_str.length;
if (str_len < 4) return to_str;
if (str_len === 4) return to_str.slice(0, 1) + "," + to_str.slice(1);
const digi4 = to_str.slice(0, 3);
const ks = Math.floor(str_len / 3);
if (ks > 5) return "a lot";
const rem = str_len - 3 * ks;
const inserted = rem ? digi4.slice(0, rem) + "." + digi4.slice(rem) : digi4;
return inserted + ["h", "k", "m", "b", "t", "q"][rem ? ks : ks - 1];
}
FOR NOTHING?!?!?!??!?!

Ответить
@saeednoruzic
@saeednoruzic - 17.09.2022 20:39

awesome

Ответить
@mavdotjs
@mavdotjs - 17.09.2022 05:10

Jeff: "2.5 billion"
the 5.4B views left over: "Am i a joke to you?"

Ответить
@blueguy5588
@blueguy5588 - 16.09.2022 19:29

Extremely useful, thank you!

Ответить
@patelronak153
@patelronak153 - 16.09.2022 18:06

🤩🚀🚀

Ответить
@dariusprahanca7151
@dariusprahanca7151 - 16.09.2022 17:55

How you dinamically display console.log? I am fascinated

Ответить
@tafadzwamabika5514
@tafadzwamabika5514 - 16.09.2022 17:38

ZWD 😂.

Ответить
@juleswinnfield1437
@juleswinnfield1437 - 16.09.2022 02:26

Loving the new channel, keep it up!

Ответить