Created
June 25, 2020 07:14
-
-
Save MatthewVita/f1e92c6948b6f1c9b9a4af4e25785d62 to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/ferofis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/chance/1.1.6/chance.min.js" integrity="sha256-+bo9VPNB85DWg5DKk5YGyHqCd4zCK4fjnhD9hSIM/aI=" crossorigin="anonymous"></script> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> | |
function MirandaOwes() { | |
let min = 1; | |
let max = 2; | |
let float = chance.floating({min: min, max: max}); | |
return ('$' + float).substring(0, 5); | |
} | |
alert(MirandaOwes()) | |
</script> | |
<script id="jsbin-source-javascript" type="text/javascript">function MirandaOwes() { | |
let min = 1; | |
let max = 2; | |
let float = chance.floating({min: min, max: max}); | |
return ('$' + float).substring(0, 5); | |
} | |
alert(MirandaOwes())</script></body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function MirandaOwes() { | |
let min = 1; | |
let max = 2; | |
let float = chance.floating({min: min, max: max}); | |
return ('$' + float).substring(0, 5); | |
} | |
alert(MirandaOwes()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment