diff --git a/MVC/kalender.html b/MVC/kalender.html
index e69de29..51d1691 100644
--- a/MVC/kalender.html
+++ b/MVC/kalender.html
@@ -0,0 +1,42 @@
+
+
+
+
+
+
+ Document
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/MVC/løkker.html b/MVC/løkker.html
index d432cb4..a7ab2ef 100644
--- a/MVC/løkker.html
+++ b/MVC/løkker.html
@@ -21,7 +21,7 @@
let lishtml = '';
for (let i = 1; i <= maxNumber; i++) {
lishtml += /*HTML*/ `
- ${maxNumber} x ${i} = ${i * 10}
+ ${maxNumber} x ${i} = ${i * maxNumber}
`;
}
diff --git a/oppgaver/uke5/array1.html b/oppgaver/uke5/array1.html
index eb5a4ea..5471133 100644
--- a/oppgaver/uke5/array1.html
+++ b/oppgaver/uke5/array1.html
@@ -10,7 +10,7 @@
diff --git a/oppgaver/uke5/array2.html b/oppgaver/uke5/array2.html
index e8132c9..c0babc2 100644
--- a/oppgaver/uke5/array2.html
+++ b/oppgaver/uke5/array2.html
@@ -13,6 +13,7 @@
let htmlCart = '';
const goods = ['TV', 'Computer', 'Gaming Consol', 'Coffee'];
let shoppingCart = [];
+ let item;
let app = document.getElementById('app');
let tv = 0;
let computer = 0;
@@ -22,7 +23,6 @@
// View
updateView();
function updateView(){
- let item;
for (let i = 0; i < goods.length; i++){
item = goods[i];
html += /*HTML*/ `
@@ -65,9 +65,12 @@
Gaming antall = ${gaming}
Kaffe antall = ${coffee}
+
`;
-
- app.innerHTML += htmlCart;
+ app.innerHTML = htmlCart;
+ }
+ function shopMore(){
+ location.reload();
}