JSON Output Mode

NodeJS Medium 3 views
Back to Questions

Problem Description

If --json flag is present, print output as JSON instead of text.

Input Format

No input.

Output Format

Print JSON or text.

Constraints

Use process.argv.includes.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev