This work is produced by Johan Leitet for the course Client-based Web Programming (1DV022) at Linnaeus University.
All content in this work excluding photographs, icons, picture of course litterature and Linnaeus University logotype and symbol, is licensied under a
Creative Commons Attribution 4.0 International License.
If you change the content do not use the photographs, icons, picture of the course literature or Linnaeus University logotype and symbol in your new work!
At all times you must give credit to: ”Linnaeus university – Client-based Web Programming (1DV022)” with the link https://coursepress.lnu.se/kurs/klientbaserad-webbprogrammering/ and to the Creative Common-license above.
"The browser is a really hostile programming environment."
-- Douglas Crockford,
The JavaScript Programming Language
Icon made by Freepik from www.flaticon.com is licensed under CC BY 3.0
index.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body>
<section>
... A lot of content here ...
</section>
<script src="js/app.js"></script>
</body>
src/
|-js/
|-app.js
|-index.html
index.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body>
<script>
console.log('Testing out js in the browser')
</script>
<section>
... A lot of content here ...
</section>
</body>
index.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title></title>
<script type="module" src="js/app.js"></script>
</head>
<body>
<section>
... A lot of content here ...
</section>
</body>
src/
|-js/
|-app.js
|-index.html