I've few variables that are of type number
(or for that matter strings too).
I want add some metadata to these variables.
When I try to use Object.defineProperty(myvar, "prop", {/*getter & setter*/})
it gives an error that myvar is not an object.
How can I define a property on non-objects with getter and setter methods?
I don't want to add anything to Number.prototype
because I want these properties only on few variables.