4 ms·
I recommend people to study few things before jumping in to something complex which will help them deal with the mess - Understand the difference between primi
by searchableguy 6y ago
I recommend people to study few things before jumping in to something complex which will help them deal with the mess -
Understand the difference between primitive values and object values. There are few historical bugs here with typeof that are now defined in the spec (null, undefined etc are primitive values but will give object etc).
Floating point math:
https://en.m.wikipedia.org/wiki/Floating-point_arithmetic https://en.m.wikipedia.org/wiki/Floating-point_arithmetic
Type coercion:
https://exploringjs.com/deep-js/ch_type-coercion.html https://exploringjs.com/deep-js/ch_type-coercion.html
Prototypical inheritance:
https://javascript.info/prototype-inheritance https://javascript.info/prototype-inheritance
How this works:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/this https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
And you will be fine for the most part. Other things you will discover on your own.
And use typescript if you can.