Skip to content

Instantly share code, notes, and snippets.

@MatthewVita
Created June 25, 2020 07:14
Show Gist options
  • Save MatthewVita/f1e92c6948b6f1c9b9a4af4e25785d62 to your computer and use it in GitHub Desktop.
Save MatthewVita/f1e92c6948b6f1c9b9a4af4e25785d62 to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/ferofis
<!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>
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