Docsity

Function Prototypes, Compound Assignment Operators, Passing Data, and Top-Down Design - Pr, Study notes of Computer Science

Partial preview of the text

Download Function Prototypes, Compound Assignment Operators, Passing Data, and Top-Down Design - Pr and more Study notes Computer Science in PDF only on Docsity!

ANNOUNCEMENTS

 Quiz #3 today

 What is a function prototype?

FUNCTION PROTOTYPES

PASSING DATA TO FUNCTIONS

 How is an array passed to a function?  Example: PassReturnArrays.html  Let’s see a Memory Diagram.

 null – indicates no value  undefined  Value associated with uninitialized variables.  Value associated with object properties that do not exist.  == considers null and undefined equal  === considers null and undefined different

NULL AND UNDEFINED

 What is Top-Down Design?  Let’s go over an example  Video Store Software  Bottom-Up Design

TOP-DOWN DESIGN