I made a code to detect if an array includes something and delte it...
var arr = ["hi", "bye"," oh no"]
if (arr.includes("bye")) {
//remove it from arr
}
note that the place of bye can change so just imagine you don't know its place... What can I do?
Aucun commentaire:
Enregistrer un commentaire