How does node.js judge that a function defines several parameters

recently encountered a problem when learning node.js in action, while looking at the middleware section.
the book says
clipboard.png
so how does connect determine how many parameters a function defines?


< del > arguments.length < / del >

< hr >

sorry misread it. The number of parameters defined should be the length attribute of the function itself


arguments this parameter,
, and you can also take values in the order of the parameters, for example:

function test(a,b,c,d){}

call:

test(1,2,3);

then a corresponds to 1 code b corresponds to 2 meme c corresponds to 3, d is undefined

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3851d-2c11b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3851d-2c11b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?