The following applet invokes the alert method and the two custom functions noArg and twoArgs: