wrequiems

Untitled

Mar 10th, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var mult =(a,b)=> { // <- you need to add one tab
  2.     var m = a;
  3.     var n = b;
  4.     for (var c=a; c<=b; c++){ // <- you need to add one tab
  5.         if (c % 5===0){ // <- you need to add one tab
  6.             var m = a*c;
  7.             n = b*c;
  8.         } // <- you need to remove one tab
  9.     } // <- you need to remove one tab
  10.     return (m+n);
  11. } // <- you need to remove one tab
  12.  
  13. console.log(mult(5,5));
Advertisement
Add Comment
Please, Sign In to add comment