For example, if you have a list with three <li> elements with the values “Item 1” , “Item 2”, and “Item 3” set for each item respectively, then calling the `nextSibling` property on the last item will return the second item that has the value “Item 2”.
Note: calling this property can return the previous sibling no-matter if it’s an Element-node, Text-node, or Comment-node, etc. But if we want to get the previous sibling of a node that should be of type Element-node, we can then use previousElementSibling property instead.
The previousSibling property is read-only and so we can’t assign a value to it.
The return value of this property is a reference to a node that is the previous sibling of the current node that invoked this property.
Note: if there’s no sibling, the return value of this property will be null.