+ 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 : ....... } }

23rd Oct 2019, 6:28 PM
Mohammed Filali Tamouh
Mohammed Filali Tamouh - avatar
2 Answers
+ 1
ŰŽÙƒŰ±Ű§ !
1st Nov 2019, 5:43 AM
Mohammed Filali Tamouh
Mohammed Filali Tamouh - avatar
0
You can invoke it the same as any function. Here's a code example: https://code.sololearn.com/Wm4qixw8pwgE/?ref=app
27th Oct 2019, 1:48 AM
Ryan
Ryan - avatar