+ 1
Quick question: Can you put a function inside a function?
4 Answers
+ 3
Yes we can
+ 3
Sure! Iām not proficient in JS but am a bit more in Java, functions in functions is what you/I do all the time.
It is even considered good practice to have a function only do 1 thing, so in order to have another function do mulitple things we fill it with other smaller functions that only do 1 thing. I am noticing that I am not explaining well, so if this doesnāt make sense, let me know :)
+ 1
yeah, sure