TypeError: "x" has no properties
메세지
TypeError: Cannot read properties of undefined (reading 'x') (V8-based) TypeError: null has no properties (Firefox) TypeError: undefined has no properties (Firefox) TypeError: undefined is not an object (evaluating 'undefined.x') (Safari)
에러 타입
무엇이 잘못되었을까?
예제
null and undefined have no properties
js
null.foo;
// TypeError: null has no properties
undefined.bar;
// TypeError: undefined has no properties