JS PPT 6
JS PPT 6
Unit 1: Topic 06
Topic 05: Arrow Function
JavaScript Arrow Function
hello = () => {
return "Hello World!";
}
Arrow Function With Parameters:
2. We are able to omit the curly braces and the return statement
due to implicit returns
3.Single parameter
With these functions, parentheses are optional:
x => 42 || (x) => 42