|
|
|
|
|
by MikeTheGreat
829 days ago
|
|
I knew that in Python all variables are really references to objects (even when we're using a number) - is JavaScript the same way? Also, does anyone have a link/reference to the place in the spec where it specifies this? I briefly skimmed through parts of [1] but couldn't find anything that says that JavaScript treats numbers this way. [1] https://tc39.es/ecma262/multipage/#sec-intro |
|
[1] https://tc39.es/ecma262/multipage/ecmascript-data-types-and-...