the title should be pretty self-explanatory but here is an example.
Consider the following pieces of code.
function add_nums(num1, num2){
return num1 + num2;
}
var add_nums = function(num1, num2){
return num1 + num2
}
Is there any difference at all between them after these pieces of code have executed? What i mean by this is that i'm not interested in what happens while these pieces of code execute. All i care about is the end result. i.e., any difference in the properties or the way i would use add_nums
I have tried searching this problem online but can't seem to find an answer. I would assume that this means that there is no difference but I want to make sure as I am quite new to javascript! (I only started learning it today).
Any help will be appreciated, thanks!