// single line var sum = (a, b) => a + b; // multi-line var sum = (a, b) { return a + b; };
Function func = (parameters) { // this is the function body print("this is an anonymous function"); };