So I have a string "getNumber"
:
I would like to use this string as a method for an object: myObj.getNumber()
Is that possible? Thanks
So I have a string I would like to use this string as a method for an object: Is that possible? Thanks |
|||
|
As simple as:
|
|||
|
There two ways to access value from js object .. one is dot notation
More information on Mozilla, working with object guide. |
||||
|