79165214

Date: 2024-11-07 06:21:07
Score: 0.5
Natty:
Report link

In 2024, use scriptArgs because arguments doesn’t work:

$ js --version
JavaScript-C128.4.0
$ cat script.js
print(arguments);
$ js script.js hello world
script.js:1:7 ReferenceError: arguments is not defined
Stack:
  @script.js:1:7
$ cat script.js
print(scriptArgs);
$ js script.js hello world
hello,world
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Paalon