Problems

Checkbox Group State

EasyForms & Controlled Components

A checkbox group toggles membership in a selection set. Input: one toggle per line (the option name). Print the final selection as a sorted JSON array.

Input: toggle lines. Output: sorted JSON array.

Your program reads from stdin and prints to stdout.

Example 1

Input: red blue red

Output: ["blue"]

Hints

ReactFormsCheckboxes