How can I make them the same?

Viewed 24
1 Answers

because li is a DOM, not a string, using innerHTML for get string from tag html

try console.log(titleinfo[1]==li.innerHTML) on line 446

Related