Identify the Data Type
Multiple ChoiceBeginner
Question
What kind of value is `42` in most programming languages?
Hint
42 has no quotes around it and is not true or false.
Explanation
42 is a whole number. In JavaScript it is called a 'number' type; in Python it is called an 'int'. Either way, it is a numeric value, not a string (which would have quotes), a boolean (which would be true or false), or a list.
Related Resources
Related Lessons
- Data Types
Learn about the fundamental data types in programming.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.