inline in <header><script>// your js code here</script>
link in <header><script src="/path/to/your/script.js"></script>
type attribute:
omitted or "text/javascript" - javascript without module support
"module" - es6 module support
in body <body>.... <script>// your js code here </script> // this improves displaying speed