Arrow Function With Parameters: hello = (val) =>"Hello "+ val; Try it Yourself » In fact, if you have only one parameter, you can skip the parentheses as well: Arrow Function Without Parentheses: hello = val =>"Hello "+ val; ...
w3schools explains the difference: “In regular functions thethiskeyword represented the object that called the function, which could be the window, the document, a button, or whatever. With arrow functions thethiskeywordalwaysrepresents the object that defined the arrow function.” ...
How To Create Custom Select Menus, W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.