Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- var name = prompt("What is your name?");
- var weight = prompt("what is your weight?");
- function check(name ,weight){
- if (weight> 25) {
- alert (name + "Your weight is " + weight + "which is not normal."+ "Sorry");
- }
- else {
- alert (name + "Your weight is " + weight + "which is normal." + "Welcome");
- }
- return check;
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement