JavaScript DOM Scripting By Example Improving the Application Code Next Steps

JORGE HERRANDO GARIJO
JORGE HERRANDO GARIJO
7,895 Points

If statement not working. Why?

I am trying to compare the text with the value of textContent of the span in the li to see if they are replicated. Why is not working?

https://w.trhou.se/cgs1znur5q

Thank you!!

1 Answer

JORGE HERRANDO GARIJO
JORGE HERRANDO GARIJO
7,895 Points

It keeps not working... now it does send the alert but also append the li..