diff --git a/css/style.css b/css/style.css index d17d83a..fa42c31 100644 --- a/css/style.css +++ b/css/style.css @@ -1,5 +1,5 @@ body { - background-color: navy; + background-color: white; } diff --git a/edit-array.html b/edit-array.html new file mode 100644 index 0000000..90b6915 --- /dev/null +++ b/edit-array.html @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + The quickest of brown foxes. + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/fibonacci.html b/fibonacci.html new file mode 100644 index 0000000..283a9a2 --- /dev/null +++ b/fibonacci.html @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + The quickest of brown foxes. + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/js/file-inject.js b/js/file-inject.js new file mode 100644 index 0000000..e69de29 diff --git a/js/header-functions.js b/js/header-functions.js index ff2614d..f8b882f 100644 --- a/js/header-functions.js +++ b/js/header-functions.js @@ -1,5 +1,5 @@ // import jquery-3.4.0 -document.write(''); +document.write(''); document.write(''); // import `utils.js` diff --git a/js/slide22.js b/js/slide22.js index e69de29..1386937 100644 --- a/js/slide22.js +++ b/js/slide22.js @@ -0,0 +1,13 @@ + +let userInput = ""; +while (userInput = prompt ("Enter a number between 1 and 100:")){ + if (isNaN(userInput) || userInput < 1 || userInput > 100){ + alert ("Re-enter number between 1 and 100:"); + } else { + console.log(userInput); + console.log(userInput + " squared is: " + userInput * userInput); + break; + } +} + + diff --git a/js/slide23.js b/js/slide23.js index e69de29..690108a 100644 --- a/js/slide23.js +++ b/js/slide23.js @@ -0,0 +1,11 @@ + + + +let userInput1=prompt("Please enter L: "); +let userInput2=prompt("Please enter U: "); + +for(let i=userInput1;i<=userInput2;i++) + +{ + console.log(i) +} diff --git a/js/slide24.js b/js/slide24.js index e69de29..b131a6f 100644 --- a/js/slide24.js +++ b/js/slide24.js @@ -0,0 +1,20 @@ + +let myData = [10]; +let userInput1; +let userInput2; + +for (let i = 0; i < 10; i++) { + myData[i] = 1; +} +console.log(myData) + +while(userInput1 = prompt("Enter the index: ")&&(userInput2 = prompt("Enter the new index: "))) { + if ((isNaN(userInput1 && userInput2) || userInput1 && userInput2 < 0 || userInput1 && userInput2 > 10)) { + alert("Out of range!"); + break; + } + else{ + myData[userInput1] = parseInt(userInput2); + console.log(myData) + } +} diff --git a/js/slide25.js b/js/slide25.js index e69de29..670c101 100644 --- a/js/slide25.js +++ b/js/slide25.js @@ -0,0 +1,10 @@ +let Fibonacci = []; +let i; + +Fibonacci[0] = 0; +Fibonacci[1] = 1; + +for (i = 2; i <= 10; i++) { + Fibonacci[i] = Fibonacci[i - 2] + Fibonacci[i - 1]; +} +console.log(Fibonacci); \ No newline at end of file diff --git a/print-interval.html b/print-interval.html new file mode 100644 index 0000000..aca21bb --- /dev/null +++ b/print-interval.html @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + The quickest of brown foxes. + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/index.html b/valid.html similarity index 98% rename from index.html rename to valid.html index ef9a207..703c13d 100644 --- a/index.html +++ b/valid.html @@ -14,6 +14,7 @@ + @@ -36,7 +37,7 @@ - The quickest of brown foxes. +