From 5868ff1a7a7389cf09222b4347111a4614cb4861 Mon Sep 17 00:00:00 2001 From: Geir Okkenhaug Jerstad Date: Tue, 27 Aug 2024 14:38:00 +0200 Subject: [PATCH] a couple of loops --- Codealong/index.html | 30 +++++++++++++++++++ eloquentjavascript/loops.js | 5 ++++ .../adjektivhistorie.html | 0 .../script.js | 0 .../style.css | 0 5 files changed, 35 insertions(+) create mode 100644 eloquentjavascript/loops.js rename oppgaver/uke4/{adjektichistorie => adjektivhistorie}/adjektivhistorie.html (100%) rename oppgaver/uke4/{adjektichistorie => adjektivhistorie}/script.js (100%) rename oppgaver/uke4/{adjektichistorie => adjektivhistorie}/style.css (100%) diff --git a/Codealong/index.html b/Codealong/index.html index e69de29..12140c7 100644 --- a/Codealong/index.html +++ b/Codealong/index.html @@ -0,0 +1,30 @@ + + + + + + + Document + + + +
+
Tekst her
+ + Vis dyr: +
+
+ + + + \ No newline at end of file diff --git a/eloquentjavascript/loops.js b/eloquentjavascript/loops.js new file mode 100644 index 0000000..dfdbd01 --- /dev/null +++ b/eloquentjavascript/loops.js @@ -0,0 +1,5 @@ +for (let i = 0; i <= 9; i++){ + if (i % 2 !== 0) console.log(i); +} +let i = 0; +while (i < 10) { console.log(i); i++; } diff --git a/oppgaver/uke4/adjektichistorie/adjektivhistorie.html b/oppgaver/uke4/adjektivhistorie/adjektivhistorie.html similarity index 100% rename from oppgaver/uke4/adjektichistorie/adjektivhistorie.html rename to oppgaver/uke4/adjektivhistorie/adjektivhistorie.html diff --git a/oppgaver/uke4/adjektichistorie/script.js b/oppgaver/uke4/adjektivhistorie/script.js similarity index 100% rename from oppgaver/uke4/adjektichistorie/script.js rename to oppgaver/uke4/adjektivhistorie/script.js diff --git a/oppgaver/uke4/adjektichistorie/style.css b/oppgaver/uke4/adjektivhistorie/style.css similarity index 100% rename from oppgaver/uke4/adjektichistorie/style.css rename to oppgaver/uke4/adjektivhistorie/style.css