Guest User

Untitled

a guest
Jan 22nd, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. var numberType;
  2.  
  3. if (x < 0) {
  4. numberType = 'Negative';
  5. doSomething(x);
  6. } else {
  7. numberType = 'Non-negative';
  8. doSomething(Math.abs(x));
  9. }
Add Comment
Please, Sign In to add comment