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
Binary file added .DS_Store
Binary file not shown.
7 changes: 0 additions & 7 deletions README.md

This file was deleted.

1 change: 0 additions & 1 deletion class-01.md

This file was deleted.

89 changes: 89 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
<!DOCTYPE html>
<html>
<head>
<title>Welcome to Seattle!</title>
<style>
h1 {
background-color: blue;
color: white;
}
p {
background-color: green;
color: white;
}
body {
padding: 100px;
}

img {
height: 300px;
width: 500px;
}
</style>
</head>
<body>
<header>
<h1>
Class Lab 1
</h1>
</header>
<main>
<p>
Have you been to Pike Place Market?
</p>
<p>
Have you heard of a city called Seattle?
<script>
let count 0;
let question = 'Have you heard of a city called Seattle?';
let answer = prompt(question); 'Have you ever heard of a city called Seattle?'

}
let userLovesseattle = prompt("Would you visit Seattle?");
function userLovesSEA (){
document.write("<p>" + count + "'heard of Seattle: " + userLovesSEA + ".<p>");
}


</script>
</p>

<p>
Have you ever seen a fish get thrown across the room?
<script>
let count = 0;
let question = 'Have you ever seen a fish get thrown across the room?';
let answer = prompt(question); 'Have you ever seen a fish get thrown across the room?'
</script>
</p>

<p>
Would you be willing to travel to this wet city for some excitment?!
<script>

let count = 0;
let question = 'Would you be willing to travel to this wet city for some excitment?!';
let answer = prompt(question); 'Would you be willing to travel to this wet city for some excitment?!'

</script>
</p>
</main>

<script>
let count = 0;
let question = 'Do you like the rain?';
let answer = prompt(question); 'Do you like the rain?'

let userLovesseattle = confirm("Would you visit Seattle??");
let userLovesSEA = confirm("Would you be willing to travel to this wet city some excitment?");



document.write(answer);
</script>
<main>
<img src="https://uploads.visitseattle.org/2015/04/17020329/PikePlaceFish_creditChrisBachmann.jpg">
</main>

</body>
</html>
Empty file added lab5a/index.html/app.js
Empty file.
Empty file added lab5a/index.html/index.html
Empty file.
51 changes: 51 additions & 0 deletions lab5a/index.html/tests.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
'use strict';

// You should not modify anything in this file, but feel free to look through it!

function testSum() { //eslint-disable-line
if (sum(4,7)[0] === 11 && sum(4,7)[1] === 'The sum of 4 and 7 is 11.') {
console.log('%c TEST FOR sum() PASSES', 'color: green');
} else {
console.log('%c TEST FOR sum() FAILS', 'color: red');
}
}

function testMultiply() { //eslint-disable-line
if (multiply(5,9)[0] === 45 && multiply(5,9)[1] === 'The product of 5 and 9 is 45.') {
console.log('%c TEST FOR multiply() PASSES', 'color: green');
} else {
console.log('%c TEST FOR multiply() FAILS', 'color: red');
}
}

function testSumAndMultiply() { //eslint-disable-line
if (sumAndMultiply(4, 7, 5)[0] === 16 && sumAndMultiply(4, 7, 5)[1] === 140 && sumAndMultiply(4, 7, 5)[2] === '4 and 7 and 5 sum to 16.' && sumAndMultiply(4, 7, 5)[3] === 'The product of 4 and 7 and 5 is 140.') {
console.log('%c TEST FOR sumAndMultiply() PASSES', 'color: green');
} else {
console.log('%c TEST FOR sumAndMultiply() FAILS', 'color: red');
}
}

function testSumArray() { //eslint-disable-line
if (sumArray(testArray)[0] === 9 && sumArray(testArray)[1] === '2,3,4 was passed in as an array of numbers, and 9 is their sum.') {
console.log('%c TEST FOR sumArray() PASSES', 'color: green');
} else {
console.log('%c TEST FOR sumArray() FAILS', 'color: red');
}
}

function testMultiplyArray() { //eslint-disable-line
if (multiplyArray(testArray)[0] === 24 && multiplyArray(testArray)[1] === 'The numbers 2,3,4 have a product of 24.') {
console.log('%c TEST FOR multiplyArray() PASSES', 'color: green');
} else {
console.log('%c TEST FOR multiplyArray() FAILS', 'color: red');
}
}

function testMultiplyAnyArray() { //eslint-disable-line
if (multiplyAnyArray(testDynamicArray)[0] === 120 && multiplyAnyArray(testDynamicArray)[1] === 'The numbers 1,2,3,4,5 have a product of 120.') {
console.log('%c TEST FOR multiplyAnyArray() PASSES', 'color: green');
} else {
console.log('%c TEST FOR multiplyAnyArray() FAILS', 'color: red');
}
}
6 changes: 0 additions & 6 deletions prompt-engineering.md

This file was deleted.