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