JSFiddle - React, Tailwind, and code Playground
by Damien M
JavaScript
var nomtab = [], noms;
while(noms = prompt('Entrez un nom')){
nomtab.push(noms);
}
if(nomtab.length > 0){
alert(nomtab.join(' - '));
}else{
alert('Pas de noms');
}