AlfatArdiansa

Codewars w Sandhika 8

Oct 31st, 2020
531
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const makeNegative = (num) => (num < 0 ? num : -num);
  2.  
  3. console.log(makeNegative(42), -42);
  4.  
RAW Paste Data