Ilikebugs

J1+J2 JS

Aug 2nd, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var x=1;
  2. var y=-4;
  3.  
  4. if (x>0 && y>0){
  5.   console.log(1)}
  6. else if (x>0 && y<0){
  7.   console.log(4)}
  8. else if (x<0 && y<0){
  9.   console.log(3)}
  10. else {
  11.   console.log(4)}
  12.  
  13. J2:
  14. var N = 12;
  15. var k = 3;
  16. var x = N;
  17. for (var i = 1; i<=k;i++){
  18.     x+= N*Math.pow(10,i);
  19. }
  20. console.log(x);
Add Comment
Please, Sign In to add comment