+ 1

Quick question: Can you put a function inside a function?

9th Mar 2022, 5:28 PM
Spencer Pawlik
Spencer Pawlik - avatar
3 ответов
+ 3
Yes we can
9th Mar 2022, 5:31 PM
PanicS
PanicS - avatar
+ 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 :)
9th Mar 2022, 5:57 PM
Brave Tea
Brave Tea - avatar
+ 1
yeah, sure
9th Mar 2022, 9:14 PM
Muhammadzeyn Nuru Ahmed
Muhammadzeyn Nuru Ahmed - avatar