samedi 17 septembre 2016

javascript if statement broken

The javascript if tag not working for me. Ex)

if(color = "red") color1 = color1 + "red";

if(color = "blue") color1 = color1 + "blue;

The code will set the variable to blue and red. Any help will be greatly appreciated.

Aucun commentaire:

Enregistrer un commentaire