equal arrow javascript for named functions code example
Example: equal arrow javascript for named functions
// Traditional Function
function bob (a){
return a + 100;
}
// Arrow Function
let bob = a => a + 100;
// Traditional Function
function bob (a){
return a + 100;
}
// Arrow Function
let bob = a => a + 100;