Pijomir

Sign check

Oct 5th, 2023 (edited)
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function signCheck(n1, n2, n3) {
  2.     let result = [n1, n2, n3].filter(a => a < 0).length % 2 === 1 ? 'Negative' : 'Positive';
  3.     console.log(result);
  4. }
Advertisement
Add Comment
Please, Sign In to add comment