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.
- Determine the data type of the
value. - Return the type as a string (e.g., if it's a number, return
"number").
01EXAMPLE 1
Input
value = 42Output
"number"Constraints
- Use the typeof operator.
FundamentalsData Types
JavaScriptSystem handles I/O — write your function only
Loading...
3 Hidden
Input Arguments
value42
Expected Output
number
Click RUN to test your solution