Advertisement
Game_Logic

Phone Number Finder

Apr 9th, 2019
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. Put this in the console :
  2. function mainnumberfinder() {
  3. var nums = [1, 2, 3, 4, 5, 6, 7, 8, 9, 0];
  4. var key2 = ((Math.floor((Math.random() * 10)).toString()) + (Math.floor((Math.random() * 10)).toString()) + (Math.floor((Math.random() * 10)).toString()));
  5. var key3 = ((Math.floor((Math.random() * 10)).toString()) + (Math.floor((Math.random() * 10)).toString()) + (Math.floor((Math.random() * 10)).toString()) + (Math.floor((Math.random() * 10)).toString()));
  6. document.getElementById('nums').innerHTML = "(419)-"+ key2+"-"+ key3+""
  7. }
  8.  
  9. Put this in the HTML :
  10. <html><head><title>Phone Number</title></head><body><button onclick="mainnumberfinder()">Find Phone Number</button>
  11. <div><big id="nums"></big></div></body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement