+ 1
Quick question: Can you put a function inside a function?
3 Antworten
+ 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