You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

28 lines
526 B

<!DOCTYPE html>
<html>
<body>
<script>
var jeton_jac=1000;
var jeton_joueur=100;
function myFunction() {
var x = document.getElementById("name").value;
document.write(x);}
function nbAlea(){
const cars = [Math.floor(Math.random() * 10) ,
Math.floor(Math.random() * 10) ,
Math.floor(Math.random() * 10) ];
document.write(cars);
}
nbAlea()
</script>
<button onclick="myFunction()">Validé</button>
<input type="text" id="name" required
minlength="4" maxlength="8" size="10">
</body>
</html>