// Model Variabler let sentence = "" let words = ["Green", "Red", "Cat", "Man", "Started", "Jumped", "Pool", "Wall"]; // View // HTML, onclick CSS updateView(); function updateView() { let html = `
Her er __ noe
${words[0]}
`; document.getElementById('app').innerHTML = html; }; // Controller endrer modellen function insertWords(word) { document.getElementById('sentence').innerHTML = `annet ${word}`; }