Advertisement
Spocoman

06. Sign Check

Jan 25th, 2022
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function solve (a, b, c) {
  2.  
  3.     console.log([a,b,c].filter(a => a < 0).length === 2 || [a,b,c].filter(a => a > 0).length % 2 === 1 ? 'Positive' : 'Negative');
  4.  
  5. }
  6.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement