Error ------------------------------------------------------------------------------------------------------ test.js:4:5 Cannot call `foo` because no arguments are expected by function [1]. [extra-arg] test.js:4:5 4| foo(1, 2); // error ^ References: test.js:1:1 1| function foo() {} ^^^^^^^^^^^^^^ [1] Error ------------------------------------------------------------------------------------------------------ test.js:6:3 Cannot call `foo` because no arguments are expected by function [1]. [extra-arg] test.js:6:3 6| 1, // error ^ References: test.js:1:1 1| function foo() {} ^^^^^^^^^^^^^^ [1] Error ------------------------------------------------------------------------------------------------------ test.js:9:1 Cannot call `foo` because no arguments are expected by function [1]. [extra-arg] test.js:9:1 9| foo(...args); // error ^^^ References: test.js:1:1 1| function foo() {} ^^^^^^^^^^^^^^ [1] Found 3 errors