Video from Oct 10th:

CodeFall2024-week5.mp4

Module 5 - Classes and Objects

https://docs.google.com/document/d/1h5lOxSXyMdoRTZSp2pSOAT22AQrk1BLiRPAdQFUb6N4/edit#heading=h.gjdgxs

This week we will review:

Functions

Last week we did not cover how to create functions that return values, so in the review we did an example where we created a function that accepts two values, adds them together and returns a result:

// we are creating a function that accepts two values as parameters
//    this function will add the two numbers and return the sum
function addNumbers(num1, num2) {
	return num1+num2;
}

function draw() {
	// This will print 120 to the console window
	console.log(addNumbers(100,20));
}