CIT 336 ASSIGNMENT WEBSITE

Welcome

Welcome to Jason Presher's CIT 336 Presentation Page

Here is my While Loop video presentation. I got the class number wrong in the video it should be CIT336.

My while loop example

The while code
function myFunction(){
var array = ["hello", "you", "crazy", "dudes"];
var i = 0;
var text = "";
while(i < 8){
text += "
" + array;
i++;
}
document.getElementById("demo").innerHTML = text;
}

Click button to test the While loop.

It should output the array 8 times.