javascripting
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title></title>
</head>
<body>
<script type="text/javascript" src="main.js"></script>
</body>
</html>
let likePatatos = prompt("Hey mon ami ! Tu aimes ça les patates ?");
let nonPatatos = ['n','N','non','no','Non','No'];
let yesPatatos = ['o', 'O', 'y','Y','oui','Oui','yes','Yes'];
let noPatatos = ["Je vous sens comme tiraillé"];
if(yesPatatos.includes(likePatatos)){
let patatos ="";
for(let i=0; i<7; i++){
patatos += "#";
console.log(patatos);
}
}else if(nonPatatos.includes(likePatatos)){
alert("ah ba j'suis décu :(");
}
else
alert(noPatatos);