How do you convert a regular function into an arrow function in JavaScript?
Enclose the function code in curly braces {}.
{}
Remove the function keyword and use the => syntax.
function
=>
Use the function() keyword instead of function.
function()
Use the arrow() keyword before the function name.
arrow()