Schedule Raspberry Pi to reboot every day

I have a Raspberry Pi that displays a Node-Red page, but it hangs every few days. After a reboot it is fine again. So I edited crontab to have it restart at 5 in the morning every day. First edit the crontab file sudo su – #super usercrontab -e #open and edit crontab file At…