If else condition in javascript error. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

If else condition in javascript error.

I want to check if the first row of a table contains some number and prints true on console but it doesn't seem to work. https://code.sololearn.com/W4fRKfoJzel5/?ref=app https://code.sololearn.com/W4fRKfoJzel5/?ref=app

28th Apr 2022, 9:39 PM
Akang Toshi
Akang Toshi - avatar
1 Answer
0
Thanks Mirielle , my code is also working now 😄. The problem was with the innerText. I did not put it in the first place.
29th Apr 2022, 4:13 AM
Akang Toshi
Akang Toshi - avatar