Solved: About syntax errors and good debugging practices

BTW in your node-red-log output you will only see the server side syntax errors, i.e. the syntax errors in your .js file. In the browser console log (like in your screenshot), you will see the client side syntax errors. I.e. the javascript in your .html file.