PBS - JavaScript Playground

Part of the Programming by Stealth Series by Bart Busschots

Instructions

Type your JavaScript Code into the text area below, then click the Run button to execute it. A new window will pop up (be sure to allow it through your popup blocker) with the output.

Your JavaScript code should use the custom function pbs.say() to output text to the output window.

You can use the three text boxes above the run button to pass inputs to your code. You can access individual inputs with pbs.input(n) where n is 1, 2, or 3. You can also access all the non-empty values as an array with pbs.inputs().

Your Code

Inputs: