처음부터 차근차근
Too few arguments to function 본문
반응형
코딩을 하다가 위와 같은 오류가 떴다.
이 오류의 발생 원인은 함수 매개변수 개수가 원래 받아야되는 개수보다 적게 들어왔을 때 생긴다.
예를 들어서
function test (int param1, int param2) {
}
test(1); // 이럴 때 발생한다.
그래서 함수의 매개변수 개수를 맞춰주면 오류가 해결된다.
반응형
'Error&Warning' 카테고리의 다른 글
react 터미널 창에 뜨는 waring 없애는 법 (0) | 2022.01.22 |
---|---|
[Vue] npm run serve 안됨 (0) | 2022.01.04 |
$(...).modal is not a function (0) | 2021.12.19 |
git : failed to push some refs to (0) | 2021.12.08 |
Unable to load the requested language file: language/dutch/upload_lang.php (0) | 2021.12.04 |
Comments