Posts by Alef Rodrigo Pereira • 81 points
2 posts
-
4
votes2
answers62
viewsQ: Can only use get without the set in Object.defineProperty?
I need more information about attributes get and set of the method Object.defineProperty(). I understood that get calls a function when a property is read and that set calls a function when a value…
javascriptasked Alef Rodrigo Pereira 81 -
4
votes5
answers98
viewsQ: Conversion of object properties to numbers
I would like to know how to make the values of an object become numbers. I read about the Methods valueOf(), and toString(), but I have not yet figured out how to use them for this purpose, my…