🔴 Reading Error Messages
4 exercises — read real error messages from JavaScript, Python, SQL, and Node.js and choose the most accurate plain-English explanation.
0 / 4 completed
Reading error messages — always look for:
- Error type: TypeError, KeyError, ECONNREFUSED — tells you the category
- Message: what specifically went wrong
- Location: file name + line number — where in the code
- Root cause: why it happened (missing data, wrong type, service not running)
1 / 4
A developer sees this error in the browser console. Which plain-English explanation is most accurate?
TypeError: Cannot read properties of undefined (reading 'map')Option B correctly identifies both the immediate error (calling
.map() on undefined) and the likely root cause (the data was expected but missing). This is the most useful explanation because it tells you what went wrong and why it typically happens. Option A confuses a type error with a syntax/language error. Option C misreads "reading 'map'" as a problem inside the map function — it's the property name being read, not the function. Option D is wrong — map is a built-in array method, not an import. Pattern: TypeError: Cannot read properties of undefined (reading 'X') always means you tried to access property X on undefined.