0

Difference between these two

What are the pros and cons for writing one of these functions and whats the difference: function functionName() { } and, var functionName = function() { }

14th Dec 2017, 7:26 PM
Meta Byte
Meta Byte - avatar
1 Resposta
0
I dont have a lot of knowlege in Jscript, so if i am wrong correct me function functionName(){ } On this way you create a function var functionName = function(){ } On this way you are assinging a function to a variable
14th Dec 2017, 7:37 PM
Ice
Ice - avatar