https://leetcode.com/problems/return-length-of-arguments-passed/editorial/ We need to count the number of arguments passed to function argumentsLength . Here the arguments are passsed in the form of rest parameters. why do we need to pass it like that? the rest parameter is a feature that allows a function to accept an indefinite number of arguments The rest parameter collects all the remaining arguments passed to a function into an array even if the number of arguments is not known in advance. If no additional arguments are passed, the rest parameter will be an empty array Syntax: function functionName ( ... args ) { // Function body } conventionally named args or rest to indicate its purpose. function sum ( ... args ) { let total = 0 ; for ( let number of args ) { total += number ; } return total ; } console . log ( sum ( 1 , 2 , 3 , 4 ) ) ; // Output: 10 console . log ( sum ( 5 , 10 , 15 ) ) ; // Output...