When do I use pure functions or modifiers? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 11

When do I use pure functions or modifiers?

I read that it's recommended to use pure functions anytime it was reasonable to do it and use modifiers only we see any advantage. but how do I know which way is better when I'm coding? thanks in advance.

2nd Apr 2017, 2:32 PM
LayB
LayB - avatar
1 Answer
+ 14
In that case, see that which one of them is shorter but more productive!
7th Apr 2017, 6:31 PM
Harshit Gupta
Harshit Gupta - avatar