When setting a JavaScript variable's properties to a function is there anything special going on besides setting a variable as a pointer to a function's code?
Isn't this exactly what a C# delegate is?
I know in JavaScript you can directly assign a function to a variable like so:
var x = function() { return "Hello"; }
In C# it's a little different:
Func<string> x = () => { return "Hello"; };
However aren't these equivalent? Isn't directly assigning the function just sugar? Is JavaScript's concept of having "functions as objects" any different from languages such as C#?