Real Type Finder

JavaScript Easy 4 views
Back to Questions
Next Normalize to Number or NaN Medium N

Problem Description

Given one value as a string input, print its real JavaScript type in a friendly way: null, array, object, number, string, boolean, undefined, function.

Input Format

One line containing a JSON-like value. Examples: null, [1,2], {"a":1}, "hi", true, 10.

Output Format

One word type name.

Sample Test Case

Input:
[1,2,3]
Output:
array

Constraints

Input is valid JSON for primitives/arrays/objects.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Next