Can we also assign ordinary function in variable? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 2

Can we also assign ordinary function in variable?

Just notice how can we assign lambdas function to a variable.

1st Aug 2017, 10:51 AM
Zar Ni Myo
Zar Ni Myo - avatar
1 Réponse
+ 1
Assigning a function to a variable is essentially calling a method on an object. So i guess yes and no
1st Aug 2017, 10:45 PM
James Cooke