lurt å trykke ctl+s før push
This commit is contained in:
parent
a99883fb2d
commit
a1eed2dcc9
6 changed files with 57 additions and 10 deletions
|
@ -10,7 +10,7 @@
|
|||
|
||||
<script>
|
||||
const app = document.getElementById('app');
|
||||
const pocketStuff = ['Hat', 'Pencil', ];
|
||||
const pocketStuff = ['Hat', 'Pencil', 'Dinosaur', 'Showercap', 'Piece of tape'];
|
||||
|
||||
view();
|
||||
function view() {
|
||||
|
@ -25,12 +25,12 @@
|
|||
|
||||
// controller
|
||||
function seeWhatsInPocket(){
|
||||
for (i = 0; i < pocketStuff.lenght; i++){
|
||||
for (i = 0; i < pocketStuff.length; i++){
|
||||
console.log(i);
|
||||
app.innerHTML += /*HTML*/ `
|
||||
<li>${pocketStuff[i]}</li>
|
||||
`;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue