First commit
This commit is contained in:
33
Prep 2/ch03-proj01.html
Executable file
33
Prep 2/ch03-proj01.html
Executable file
@@ -0,0 +1,33 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Chapter 03 Project 01</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>Fundamentals of Web Development</h1>
|
||||
<p>
|
||||
<em>By Randy Connolly and Ricardo Hoar</em>
|
||||
</p>
|
||||
<a href="./funwebdev-3rd-ed-cover.jpg">
|
||||
<img src="./funwebdev-3rd-ed-cover-small.jpg" alt="funwebdev-3rd-ed-cover-small">
|
||||
</a>
|
||||
<p>
|
||||
This textbook covers a broad range of topics required for modern web development.
|
||||
</p>
|
||||
<p>
|
||||
<a href="http://www.funwebdev.com">Learn more</a>
|
||||
</p>
|
||||
<h2>First Chapters</h2>
|
||||
<ol>
|
||||
<li>Introduction to Web Development</li>
|
||||
<li>How the Web Works</li>
|
||||
<li>Introduction to HTML</li>
|
||||
<li>Introduction to CSS</li>
|
||||
</ol>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
30
Prep 2/codingjs-1.js
Executable file
30
Prep 2/codingjs-1.js
Executable file
@@ -0,0 +1,30 @@
|
||||
// s/o to https://the-winter.github.io/codingjs
|
||||
|
||||
// https://the-winter.github.io/codingjs/exercise.html?name=sleepIn&title=Warmup-1
|
||||
function sleepIn(weekday, vacation) {
|
||||
return !weekday || vacation
|
||||
}
|
||||
|
||||
// https://the-winter.github.io/codingjs/exercise.html?name=monkeyTrouble&title=Warmup-1
|
||||
function monkeyTrouble(aSmile, bSmile) {
|
||||
return (aSmile && bSmile) || (!aSmile && !bSmile)
|
||||
}
|
||||
|
||||
// https://the-winter.github.io/codingjs/exercise.html?name=sumDouble&title=Warmup-1
|
||||
function sumDouble(a, b){
|
||||
return a === b ? a * 4 : a + b
|
||||
}
|
||||
|
||||
// https://the-winter.github.io/codingjs/exercise.html?name=frontBack&title=Warmup-1
|
||||
function frontBack(str){
|
||||
const chars = str.split("")
|
||||
;[chars[0], chars[chars.length - 1]] = [chars[chars.length - 1], chars[0]];
|
||||
return chars.join("")
|
||||
}
|
||||
|
||||
// https://the-winter.github.io/codingjs/exercise.html?name=intMax&title=Warmup-1
|
||||
function intMax(a, b, c){
|
||||
// I'll assume Math.max(a, b, c) is cheating
|
||||
|
||||
return a > b && a > c ? a : b > c ? b : c
|
||||
}
|
||||
BIN
Prep 2/funwebdev-3rd-ed-cover-small.jpg
Executable file
BIN
Prep 2/funwebdev-3rd-ed-cover-small.jpg
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 31 KiB |
BIN
Prep 2/funwebdev-3rd-ed-cover.jpg
Executable file
BIN
Prep 2/funwebdev-3rd-ed-cover.jpg
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 200 KiB |
Reference in New Issue
Block a user