morpe

JS lezione 1 IF

Jan 11th, 2011
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var conta = 1;
  2.  
  3. function prova(){
  4. var menti = true;
  5.  
  6.  
  7. if(menti){
  8.     alert("vera... ");
  9.     menti = false;
  10.     ++conta;
  11.     }
  12. else
  13.     {
  14.     menti = true;
  15.     ++conta;
  16.     exit;
  17.     }
  18. alert("falsa! ");
  19. ++conta;
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment