From c8446d5c93dd750554504f3357c8922491e3d5fd Mon Sep 17 00:00:00 2001 From: Geir Okkenhaug Jerstad Date: Mon, 19 Aug 2024 13:36:00 +0200 Subject: [PATCH] variables and functions --- eloquentjavascript/functions.js | 3 + eloquentjavascript/loopingatriangle.html | 22 +++++ .../{script.js => test_script.js} | 0 intro_js/bakgrunnsfarge.html | 89 +++++++++++++++++++ intro_js/stoppeklokke.html | 39 ++++++++ intro_js/variablerN4m1_2.html | 24 +++++ 6 files changed, 177 insertions(+) create mode 100644 eloquentjavascript/functions.js create mode 100644 eloquentjavascript/loopingatriangle.html rename eloquentjavascript/{script.js => test_script.js} (100%) create mode 100644 intro_js/bakgrunnsfarge.html create mode 100644 intro_js/stoppeklokke.html create mode 100644 intro_js/variablerN4m1_2.html diff --git a/eloquentjavascript/functions.js b/eloquentjavascript/functions.js new file mode 100644 index 0000000..0a7b887 --- /dev/null +++ b/eloquentjavascript/functions.js @@ -0,0 +1,3 @@ +const square = function(x) { + return x * x; +} \ No newline at end of file diff --git a/eloquentjavascript/loopingatriangle.html b/eloquentjavascript/loopingatriangle.html new file mode 100644 index 0000000..0a6db78 --- /dev/null +++ b/eloquentjavascript/loopingatriangle.html @@ -0,0 +1,22 @@ + + + + + + Document + + + +
+ + + \ No newline at end of file diff --git a/eloquentjavascript/script.js b/eloquentjavascript/test_script.js similarity index 100% rename from eloquentjavascript/script.js rename to eloquentjavascript/test_script.js diff --git a/intro_js/bakgrunnsfarge.html b/intro_js/bakgrunnsfarge.html new file mode 100644 index 0000000..447c9c6 --- /dev/null +++ b/intro_js/bakgrunnsfarge.html @@ -0,0 +1,89 @@ + + + + + + + Bytting av bakgrunnsfarge på nettleser + + + + +
+

Class List

+ +
farge1
+
farge2
+
farge3
+ + + +
+
+
+ + + + \ No newline at end of file diff --git a/intro_js/stoppeklokke.html b/intro_js/stoppeklokke.html new file mode 100644 index 0000000..a1c0b71 --- /dev/null +++ b/intro_js/stoppeklokke.html @@ -0,0 +1,39 @@ + + + + + + Document + + +
+ +
+ + + +
+

+

+
+ + + \ No newline at end of file diff --git a/intro_js/variablerN4m1_2.html b/intro_js/variablerN4m1_2.html new file mode 100644 index 0000000..4154ae4 --- /dev/null +++ b/intro_js/variablerN4m1_2.html @@ -0,0 +1,24 @@ + + + + + + Let & var scopes + + + + + \ No newline at end of file