Defining functions

There is many ways to define a function. Here's a list of most commoly used ones. Basic declaring function robot(diamond) { console.log(diamond) } Function expressions »