Confused on JS error

Hey so, can anyone explain to me how "text" or "dataWrapper" are not of type Node?
One literally gets seen as HTMLDivElement when hovering over and the other gets seen as HTMLParagraphElement

In the console you see me first checking if it correctly gives the date when I ask for it
Second in the console is what's within my span (which is a part that'll get added to text, so text consists of <p><span></span></p> )
Thirdly you see what's within text
image.png
image.png
Was this page helpful?