BT Group Interview Question

what are different ways of creating functions in JavaScript?