Groups
Conversations
All groups and messages
Send feedback to Google
Help
Training
Sign in
Groups
Intro to JavaScript
Conversations
About
Groups keyboard shortcuts have been updated
Dismiss
See shortcuts
My solution for Tree Walker
82 views
Skip to first unread message
Lakshmi Venkatesh Kakumani
unread,
Dec 26, 2022, 5:14:05 AM
12/26/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Intro to JavaScript
nextNode = function(node) {
if(node===null)return null;
if(node.firstChild !== null) return node.firstChild;
if(node.nextSibling !== null) return node.nextSibling;
var parent = node.parentNode;
while(parent.nextSibling === null)
{
parent = parent.parentNode;
}
return parent.nextSibling;
};
Reply all
Reply to author
Forward
0 new messages