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. Any output from the code will show in the output section at the bottom of this page.

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

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:

Output