You are viewing a single comment's thread. Return to all comments →
Why my code is not working? Javascript mode. In google debbuger is printing each element.
function print (head){ if(head.length == null){ return null } else { for(let i = 0; i < head.length; i++){ console.log(head[i]) } } }
Seems like cookies are disabled on this browser, please enable them to open this website
Print the Elements of a Linked List
You are viewing a single comment's thread. Return to all comments →
Why my code is not working? Javascript mode. In google debbuger is printing each element.
function print (head){ if(head.length == null){ return null } else { for(let i = 0; i < head.length; i++){ console.log(head[i]) } } }