Totally JS related. I'm going through codeacademy with this and with functions there's a lot of these(roughly):
I'm wondering what is better(or better practice?) because on another course(same site) it didn't assign any functions to variables. I'm getting a little confused here.
Code:
var myFunction = function() {};
I'm wondering what is better(or better practice?) because on another course(same site) it didn't assign any functions to variables. I'm getting a little confused here.