Sign in

JavaScript, clearly has the value why, displays as null

jones1008 edited in Fri, 09 Sep 2022

It is clear that this video has a value, but why does the video display null

4 Replies
commented on Fri, 09 Sep 2022

The value of videos only means that your variable definition is correct, but you get the DOM node with ID of videos through document. You also need to make sure that the node exists in HTML or that the DOM node has been loaded when your code runs to this step

commented on Fri, 09 Sep 2022

This value does not mean that there is a VJs ID in the page_ video_ 3 DOM element, first confirm this.

commented on Fri, 09 Sep 2022

Videos and video are not the same variable name

commented on Fri, 09 Sep 2022

@The answer is correct

lock This question has been locked and the reply function has been disabled.