Table of Contents Chapter Index Previous Slide Next Slide 341
Writing JavaScript functions

Introducing program script writing with JavaScript
Writing JavaScript functions
  • The program script implements the node using values from the interface

  • Define one function for each event input
  • Arguments include event value and time
  • function set_fraction( f, tm ) {
        . . .
    }