9 lines
181 B
JavaScript
9 lines
181 B
JavaScript
let age = prompt("Quel age as tu?")
|
|
if (age === 10) {
|
|
console.log("Tu as 10ans!")
|
|
} else if (age > 18) {
|
|
alert("Va voter!")
|
|
} else {
|
|
console.log("C'est pour bientot")
|
|
}
|