In JavaScript, which of the following is the correct way to define a node for a singly linked list?
{data: 10, prevNode: null}
{nodeValue: 10, nextNode: null}
{value: 10, prevNode: null}
{value: 10, nextNode: null}
This question is part of this quiz :
JavaScript Linked List