{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

FunctionsIII - main function main alert(“Done” The...

Info icon This preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
ANNOUNCEMENTS No posting of code in the forum Check class announcements daily Make sure you finish the examples we are doing in class. If you have any questions, please see a TA ASAP 1
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
EXAMPLE Let’s implement the example from last time 2
Image of page 2
3 PASSING VALUES TO FUNCTION Mechanism used to pass values to function is called pass-by-value Parameters Variables that receive data There are normal variables Arguments Values you pass to a function Example: PassByValue.html Does it matter how we name the parameters?
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon