Advertisement
kingvlad

IF ELSE JAVASCRIPT

Aug 27th, 2019
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. prompt("Enter First Name");
  2. prompt("Enter Second Name");
  3.  
  4. var loveScore = Math.random() * 100;
  5. loveScore = Math.floor(loveScore) + 1;
  6.  
  7. if (loveScore > 70) {
  8. alert("Your love percentage is " + loveScore+ "%" + " You guys are inlove");
  9. } else {
  10. alert("Your love percentage is " + loveScore + "%");
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement