Hi,
I am new to this Community and quite new to JavaScript.
I appreciate good quality of the e-course and the way of the detail and reasonable explaining.
So thank you.
I would like to ask - I came across two ways of declaring a function - see below.
It seems, that the 1) is easyier. I would like to ask, which advantages has the 2) type of declaration.
- function takeOrder() { …
X - const takeOrder = (topping, crustType) => { …
Thank you for answer.
Libor.