Quantcast
Channel: Questions in topic: "javascipt"
Viewing all articles
Browse latest Browse all 1875

Is it inefficient to declare functions after you use them?

$
0
0
I've seen this been done many times, and I don't really see any benefit from doing it. I know that it makes it more confusing because you are declaring a function after you use it instead of before; however is there an actual performance decrease by doing this? For example: void Update() { MyFunction(); } void MyFunction() { // Do things }

Viewing all articles
Browse latest Browse all 1875

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>