Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 10 additions & 33 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,58 +1,35 @@
<!DOCTYPE html>
<html lang="en">

<!-- ----------------------------------------------------------------- -->
<!-- ----------------------------------------------------------------- -->
<!-- ----------------------------------------------------------------- -->
<head> <!-- header begins here -->

<head>

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">

<link href="./css/style.css" rel="stylesheet">
<script type="text/javascript" src="./js/header-functions.js"></script>
<script type="text/javascript" src="./js/slide22.js"></script>

</head> <!-- header ends here -->
<!-- ----------------------------------------------------------------- -->
<!-- ----------------------------------------------------------------- -->
<!-- ----------------------------------------------------------------- -->






<script type="text/javascript" src="./js/slide26.js"></script>

</head>

<body>




<!-- ---------------------------------------------------------------------------------- -->
<!-- ---------------------------------------------------------------------------------- -->
<!-- ---------------------------------------------------------------------------------- -->
<body> <!-- body begins here -->


The quickest of brown foxes.




<!-- ====================================================== -->
<!-- ====================================================== -->
<footer>
<!-- footer of page begins here -->
<script type="text/javascript" src="./js/footer-functions.js"></script>
</footer> <!-- footer of page ends here -->
<!-- ====================================================== -->
<!-- ====================================================== -->


</footer>

</body>
<!-- ---------------------------------------------------------------------------------- -->
<!-- ---------------------------------------------------------------------------------- -->
<!-- ---------------------------------------------------------------------------------- -->


</html>
4 changes: 3 additions & 1 deletion js/footer-functions.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
w3IncludeHTML();
document.write('<script type="text/javascript" src="./js/file-inject.js"></script>');
document.write(
'<script type="text/javascript" src="./js/file-inject.js"></script>'
);
7 changes: 7 additions & 0 deletions js/slide22.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
let inputNumber;
do {
inputNumber = window.prompt("Enter an integer between 1-100: ");
} while (inputNumber < 0 || inputNumber > 100);

var sqr = inputNumber * inputNumber;
console.log("The square of " + inputNumber + " is: " + sqr);
9 changes: 9 additions & 0 deletions js/slide23.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
let L = window.prompt("Please Enter L: ");
let U = window.prompt("Please enter U: ");
var outputData = L;
while (L < U - 1) {
L++;
outputData += " " + L;
}

console.log(outputData);
16 changes: 16 additions & 0 deletions js/slide24.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
var myData = [];
var interationCounter;
for (iterationCounter = 0; iterationCounter < 10; iterationCounter++) {
myData[iterationCounter] = 1;
}
console.log(myData);

let indexInput = window.prompt("Enter the index that you want to change: ");
do {
var valueInput = window.prompt("Enter the value: ");
myData[indexInput] = valueInput;
console.log(myData);
indexInput = window.prompt("Enter the index that you want to change: ");
} while (indexInput < 10 && indexInput >= 0);

console.log("Index out of Range. Exit");
16 changes: 16 additions & 0 deletions js/slide25.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
let myData = [];
var interationCounter;
for (iterationCounter = 0; iterationCounter < 10; iterationCounter++) {
myData[iterationCounter] = 1;
}
console.log(myData);

let indexInput = window.prompt("Enter the index that you want to change: ");
do {
var valueInput = window.prompt("Enter the value: ");
myData[indexInput] = valueInput;
console.log(myData);
indexInput = window.prompt("Enter the index that you want to change: ");
} while (indexInput < 10 && indexInput >= 0);

console.log("Index out of Range. Exit");
13 changes: 13 additions & 0 deletions js/slide26.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
function fibonacci(someInt) {
if (someInt == 0) {
return 0;
}
if (someInt == 1) {
return 1;
}
return fibonacci(someInt - 1) + fibonacci(someInt - 2);
}

for (let i = 0; i < 59; i++) {
console.log(fibonacci(i));
}