kingvlad

Love Calculator solution

Aug 27th, 2019
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. var a = prompt("Enter First Name");
  2. var b = prompt("Enter Second Name");
  3.  
  4. function loveCal() {
  5. var n = Math.round(Math.random()*99) + 1 + "%";
  6. return n;
  7. }
  8.  
  9. console.log("Your love percentage is "+loveCal())
Advertisement
Add Comment
Please, Sign In to add comment