Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3
because your first condition IF is met with "js" if you put "jss" it will turn the first div red since it no longer meets "js" condition. BUT in your else statement it will make hello red NOT hello2 because your else statement isnt calling div [1] (hello2)..its still calling div [0] ( hello) so as a hint..find a way to make the else statement make it red while calling the second div not the first.
27th Mar 2019, 4:30 AM
Jason Kennedy