[error] ReferenceError: document is not defined
오류가 나게 된 상황 https://siyoonn.tistory.com/25 함수의 가변 인자를 공부하던 중 테스트를 하기 위해https://hashcode.co.kr/code_runners 코드 실행기에서 코드를 실행하려다 오류를 만났다 // 코드 실행기에서 실행 했던 코드 function add(x,y){ console.log(typeof arguments[1]); return x + y; } document.write(add(14,3,25,1,2,"hello","hi")); 오류의 원인 (**오류 해결은 했지만 잘못 이해하거나 해석이 되었을 수 있습니다. 고쳐야 하는 부분은 댓글 남겨주세요! ** ) 1. document.write(add(14,3,25,1,2,"hello","hi")); 이 부분에..
2022. 4. 19.