+ 1
Invoking function from properties
Can anyone guys explain for me how to invoke a function but from the properties of an object ? Example Function join(array, string){ Return something ; } function func(array){ var obj { name : // invoke join function here. color : ....... } }
2 Antworten
+ 1
شكرا !
0
You can invoke it the same as any function.
Here's a code example:
https://code.sololearn.com/Wm4qixw8pwgE/?ref=app