You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the example you use a primitive as a return value and you talk about "concise body" . Maybe it can be confuse because a function is not needed here.
As an example you could use an addition
var addition= function(a,b) {
return a+b;
};
// Implementation with Arrow Function
var addition= (a,b) => a+b;
It demonstrates the gain of using es6 syntax and you don't have to write a notice
The text was updated successfully, but these errors were encountered:
In the example you use a primitive as a return value and you talk about "concise body" . Maybe it can be confuse because a function is not needed here.
As an example you could use an addition
It demonstrates the gain of using es6 syntax and you don't have to write a notice
The text was updated successfully, but these errors were encountered: