remove global var listNoms
This commit is contained in:
parent
310edd32de
commit
b84a93fead
@ -244,8 +244,6 @@
|
|||||||
regen()
|
regen()
|
||||||
})
|
})
|
||||||
|
|
||||||
listNoms = []
|
|
||||||
|
|
||||||
function trouveMot(lettre, position) {
|
function trouveMot(lettre, position) {
|
||||||
lettre = lettre.toUpperCase()
|
lettre = lettre.toUpperCase()
|
||||||
position = position? 1: 0
|
position = position? 1: 0
|
||||||
@ -254,7 +252,7 @@
|
|||||||
|
|
||||||
function regen() {
|
function regen() {
|
||||||
if (sigleInput.value.length) {
|
if (sigleInput.value.length) {
|
||||||
listNoms = Array.from(sigleInput.value).map((lettre, position) => trouveMot(lettre, position))
|
let listNoms = Array.from(sigleInput.value).map((lettre, position) => trouveMot(lettre, position))
|
||||||
alertDiv.innerHTML = `
|
alertDiv.innerHTML = `
|
||||||
<div class="fr-alert fr-alert--info">
|
<div class="fr-alert fr-alert--info">
|
||||||
<p>Suggestion :</p>
|
<p>Suggestion :</p>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user