Generate Random Number With Javascript
Generate Random Number
Javascript Mini Project
Code HERE
<!DOCTYPE html>
<html>
<head>
<title>Genertae Random number</title>
</head>
<body>
<h1> Generate Random Number With Javascript</h1>
<input type="text" name="" id="input">
<script type="text/javascript">
var generate = Math.random() * 50;
var dink = Math.floor(generate)
document.getElementById('input').value = dink + "%";
</script>
</body>
</html>
0 Comments:
Post a Comment