+ 1

Can I call a function who is declared after the call?

21st Sep 2016, 12:56 PM
Federico Ocampo
Federico Ocampo - avatar
5 Respuestas
+ 1
really good question. I tried it in the code playground and it works even if the call is before the definition
1st Oct 2016, 8:57 AM
Kedar Kale
Kedar Kale - avatar
+ 1
Even better, if you are using 2 or more script in your webpage (each of them invoqued by à différent <script> tag) you can call à function declared in a other script, but this time thé order of the script déclaration mathers.
18th Nov 2016, 3:53 PM
Beau Antony
Beau Antony - avatar
0
the function is there to be called. It can be placed almost everywhere in the js.
25th Oct 2016, 8:26 PM
Luis A. Black Silva
0
l dont know
29th Nov 2016, 7:36 PM
Seyedjalal Hesami
Seyedjalal Hesami - avatar
0
yes
18th Dec 2016, 5:06 PM
Seyedjalal Hesami
Seyedjalal Hesami - avatar