oppgave uke 4

This commit is contained in:
Geir Okkenhaug Jerstad 2024-08-30 13:46:41 +02:00
parent f072b9146e
commit 996f8b9d05

View file

@ -37,16 +37,17 @@ function insertWords2(word) {
word2 = word;
sentence = "Once there was " + word1 + " " + word2 + " that " + word3 + " in the " + word4 + " - and great things happened. The End";
document.getElementById('sentence').innerHTML = sentence;
updateView();
}
function insertWords3(word) {
word3 = word;
sentence = "Once there was " + word1 + " " + word2 + " that " + word3 + " in the " + word4 + " - and great things happened. The End";
document.getElementById('sentence').innerHTML = sentence;
} function insertWords4(word) {
updateView();
}
function insertWords4(word) {
word4 = word;
sentence = "Once there was " + word1 + " " + word2 + " that " + word3 + " in the " + word4 + " - and great things happened. The End";
document.getElementById('sentence').innerHTML = sentence;
updateView();
}