Question: what are the different types of functions in javascript?
Answer: Function declaration. ...  Function expression. ...  Shorthand method definition. ...  Arrow function. ...  Generator function. One more thing: new Function.