Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. <script>
  2. var name = prompt("What is your name?");
  3. var weight = prompt("what is your weight?");
  4.  
  5. function check(name ,weight){
  6. if (weight> 25) {
  7. alert (name + "Your weight is " + weight + "which is not normal."+ "Sorry");
  8. }
  9. else {
  10. alert (name + "Your weight is " + weight + "which is normal." + "Welcome");
  11. }
  12. return check;
  13. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement