DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 967,611 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in

Discussion on: Beginning JavaScript - Variables and Primitive Data Types

Collapse
 
timmybytes profile image
Timothy Merritt Author

I think that’s one of the tough things to wrap your head around with a loosely-typed language like JavaScript. They can be greatly beneficial because of their variability, but sometimes defining things can get abstract.

I would just say β€œa JavaScript number is a wrapper for a numeric value, whether it’s an integer, float, etc., within the scope of available precision.”

Collapse
 
alekseiberezkin profile image
Aleksei Berezkin

Yes, the dynamic nature of JavaScript can make one feel that everything is just wrapper of whatever πŸ™‚ However, if we are talking of number-the-primitive, it's always floating-point double precision number, known as double in C and Java.