--> JavaScript and Max: Functions and Arguments

JavaScript and Max: Functions and Arguments

Downloads

Download the files used in the above examples by right-clicking the links, and then selecting "Save Link As...".

Self-Study

  1. Once you've downloaded max-js-2.zip, add a function range() to the integerOperations.js file that spits the lowest value out the left outlet and the highest value out the middle outlet.
  2. Use the jsarguments global variable to add an argument to js valueTracker.js that determines the initial value. For instance, if you create a js valueTracker.js 3 object, an initial bang should send out a 3, not a 0. Look at the jsarguments argument for more details.