Problems

Type Detective

EasyJavaScript Basics

Each line of input is a JSON value (e.g. 42, "hi", true, null, [1,2], {"a":1}). For each line print one of: number, string, boolean, null, array, object.

Input: one JSON value per line. Output: the value's type, one per line.

Your program reads from stdin and prints to stdout.

Example 1

Input: 42 "hi" true

Output: number string boolean

Hints

JavaScriptTypes
Type Detective | CodeForge AI