Async Parse JSON Number

JavaScript Easy 4 views
Back to Questions

Problem Description

Input is a JSON value. If it is a number, print it. Otherwise print INVALID. Do parsing inside async/await.

Input Format

One line JSON value.

Output Format

Number or INVALID.

Sample Test Case

Input:
123
Output:
123

Constraints

Input length up to 1e5.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next