To Do This Week:
Work of Final projects
Workshop
Quiz #2
answers:
1.
function addNumbers(num1, num2) { let sum = num1 + num2; return sum; }
OR
function addNumbers(num1, num2) { return num1 + num2; }
2.
const vegetables = ["peas", "spinach", "lettuce"]; console.log(vegetables[1]);
3.
function numberStatus(number) { if (number > 0) { return "positive"; } else if (number < 0) { return "negative"; } else { return "zero"; } }
4.
function sumUpTo(n) { let sum = 0; for (let i = 1; i <= n; i++) { sum += i; } return sum; }
5.
function delayedGreeting(name) { setTimeout(function() { console.log(`Hello, ${name}!`) }, 3000); }
OR
function delayedGreeting(name) { setTimeout(() => console.log(`Hello, ${name}!`), 3000); }
6.
function Rectangle(width, height) { this.width = width; this.height = height; this.area = function() { return this.width * this.height; }; } let rectangle = new Rectangle(3, 4); console.log(rectangle.area());
Final Project List – folder is “final477”
Final Project: 25%
Sites Due for Grading – BY Monday May 1st (90%)
You will be graded on your innovation and effort in:
- Using JavaScript, HTML and CSS (33%)
- Interface and interaction design (33%)
- Completion of the content (33%).
Completion means the project…
- Functions well without error
- Has well-considered design elements
- Has clear instructions for interaction
- Has a commented out statement in the <head> that details your resources, the steps you started with to build the project and how you used ChatGPT
- Detailed comments describing what is happening in the JavaScript
WORKSHOP: help on your final projects