javaScript- How to introduce js code

direct po Code and screenshot
<!DOCTYPE html> <html> <head> <meta charset="UTF-8">
<title>js01- How to introduce js code </title> <script type="text/javascript">
//script Labeled type="text/javascript" It can be omitted document.write(" Yudu County, Ganzhou City, Jiangxi Province <br/>");
console.log("hello hi \n world "); console.log("tom ok\njack");
console.log("jerry<br/>ok"); </script> <script src="hello.js"
type="text/javascript"></script> </head> <body> <h1>js01- How to introduce js code </h1> <!--
How to introduce js code ? 1. Direct embedding 2. Introduction of external js file --> <script type="text/javascript">
//script Labeled type="text/javascript" It can be omitted document.write(" My hometown is in Yudu County, Ganzhou City, Jiangxi Province <br/>");
</script> <script src="hello.js" type="text/javascript"></script> </body>
</html>
hello.js file
document.write(" Work hard , Make money with great effort !");

Technology