JavaScript slice() Function: Understanding Optional Parameters
This function takes two optional parameters, 'begin' and 'end', both of which are of type 'number'. If no arguments are provided when the function is called, both 'begin' and 'end' will be 'undefined'.
In this case, when the function is called with no arguments as 'slice()', it will log 'undefined undefined' to the console.
原文地址: https://www.cveoy.top/t/topic/mxVk 著作权归作者所有。请勿转载和采集!