samedi 5 août 2017

how to check existence of element (string) in array in javascript

if(colors[i] != guess_input_color){return true}; simply I've stored some colors in array "colors" and i want to check whether the input color name is in array or not, How to write program for this problem ?

Aucun commentaire:

Enregistrer un commentaire