JavaScript's OTHER most unused primitive... BIGINT

Channel:
Subscribers:
81,900
Published on ● Video Link: https://www.youtube.com/watch?v=dJKBgHIXewk



Duration: 0:00
4,512 views
237


My Angular course: https://angularstart.com/

The maximum safe integer that JavaScript's number primitive can represent is 9,007,199,254,740,991 which is obviously very large, but it is also important to be aware of this limitation as numbers start to behave unpredictably past this point and might break your app.

Previous video:    • Why does Angular need JavaScript's mo...  

Get weekly content and tips exclusive to my newsletter: https://mobirony.ck.page/4a331b9076

My game dev channel:    / @joshmoronypixels  

MY GEAR:
Keyboard: https://adm42.dev/?ref=3
Neovim setup: https://github.com/joshuamorony/lazyvim/
Animations: https://motioncanvas.io/

0:00 bigint and MAX_SAFE_INTEGER
0:58 How numbers are stored
1:29 The problem
2:14 Going beyond the MAX_SAFE_INTEGER
3:08 The solution
3:18 Does it really matter?

#angular #javascript

More tutorials: https://modernangular.com/




Other Videos By Joshua Morony


2025-04-02Monorepos don't HAVE to be hard (...and why you should always use them)
2025-03-26RxJS operators and their dangerous consequences
2025-03-19How (and why) I'm rebuilding my sites with Angular and Astro
2025-03-12Understanding JavaScript CLOSURE with... comics?
2025-03-05Tracking down a "performance" (not memory) leak in JavaScript
2025-02-26Angular's httpResource update has a surprising hidden feature
2025-02-19What's the point of using Astro... with Angular?
2025-02-12How I navigate files QUICKLY and EFFICIENTLY in my code editor
2025-02-05A "real world" example of a non-trivial Angular component done DECLARATIVELY
2025-01-29How Angular's ngNonBindable solved a huge problem in my project
2025-01-22JavaScript's OTHER most unused primitive... BIGINT
2025-01-15Why does Angular need JavaScript's most unused primitive
2025-01-08This is why PROFILING is critical for high performance JavaScript
2025-01-01THIS is a perfect example of where declarative RxJS goes wrong
2024-12-25Why XState and RxJS are not "too complex"
2024-12-18The most powerful RxJS combo I've ever used (massive performance improvement)
2024-12-11WEB WORKERS made my code over 100x faster (almost ZERO blocking time)
2024-12-04How to deeply understand Angular signals (...or anything)
2024-11-27A little TOO complex for Angular signals? or a viable RxJS alternative?
2024-11-20Angular v19 is out!... and it changed my apps (significantly)
2024-11-13I could remove ALL RxJS in my Angular app, but should I?