diff --git a/index.html b/index.html index 982a1b2..7759def 100644 --- a/index.html +++ b/index.html @@ -240,7 +240,6 @@ .then(response => response.json()) .then(json => { noms = json - regen() }) @@ -252,11 +251,11 @@ function regen() { if (sigleInput.value.length) { - let listNoms = Array.from(sigleInput.value).map((lettre, position) => trouveMot(lettre, position)) + let suggestion= Array.from(sigleInput.value).map((lettre, position) => trouveMot(lettre, position)).join(" ") alertDiv.innerHTML = `

Suggestion :

-

${listNoms.join(" ")}

+

${suggestion}