Comment

Comment by MikeTheGreat

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

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton