Ivankooo1

Arrow Function

Oct 13th, 2019
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function solve(one,two,three){
  2.   let sum = (a,b) => a + b;
  3.   let result = sum(one,two);
  4.   let subtract = (result,c) => result - c;
  5.  
  6.   console.log(subtract(result,three));
  7.    
  8. }
  9.  
  10. solve(23,6,10);
Advertisement
Add Comment
Please, Sign In to add comment