Advertisement
idotherest34

prompts with numbers

Sep 8th, 2019
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let theNumber = Number(prompt("Pick a number"));
  2. console.log("Your number is the square root of " +
  3.             theNumber * theNumber);
  4. source: eloquentjavascript.net
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement