I have a function that I am trying to convert to the new arrow syntax in ES6. It is a named function:
function sayHello(name) { console
THIS IS ES6
Yeah I think what you're after is something like this:
const foo = (depth) => {console.log("hi i'm Adele")} foo -> // the function itself foo() -> // "hi i'm Adele"