Dom: todolist order shift

on downbutton when we click on last node it give an error
" todolist.html:40 Uncaught TypeError: Failed to execute ‘insertBefore’ on ‘Node’: parameter 1 is not of type ‘Node’.
at HTMLButtonElement.downbtn.onclick "
how to resolve that?

please share the code too, upload it on github and send the repo link
It will be better to resolve the doubt by looking the exact code

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.