Type Hunter

Easy+15 XP

Mission Briefing

The Archive of Algorithms is receiving unidentified data packets. The head archivist needs you to build a scanner that can identify the exact nature of this incoming data.

The Concept: Data Identification

JavaScript uses the typeof operator to determine what kind of data is stored inside a variable. It returns a string like "number", "string", or "boolean".

The Objective

Your function receives a parameter named value.

  1. Determine the data type of the value.
  2. Return the type as a string (e.g., if it's a number, return "number").

01EXAMPLE 1

Inputvalue = 42
Output"number"

Constraints

  • Use the typeof operator.
FundamentalsData Types
JavaScript
Loading...
3 Hidden

Input Arguments

value42

Expected Output

number

Click RUN to test your solution