JavaScript
Cannot read property 'length' of undefined 오류 - Javascript
파란배개
2020. 9. 14. 13:28
TypeError: Cannot read property 'length' of undefined
조건식에 변수를 잘 못 집어넣었을 경우 일어난다.
ex) for(i = 0; i < arr.length; j++)를
for(i = 0; i < arr.length; i++)로 고치면 일어나지 않는다.