Code
Loading editor...
Tap Analyze to see visualization
Click Analyze to visualize
See step-by-step execution, variables, and output
Variables
Run code to see variables
Output
Console output will appear here
Click Analyze to visualize
See step-by-step execution, variables, and output
Run code to see variables
Console output will appear here
Use the same Symbol-based temporary method technique as call(), but accept arguments as an array instead of individually. Default the args parameter to an empty array to handle calls with no arguments. Spread the array when invoking the temporary method.
Apply is identical to call except it takes arguments as a single array, which is then spread. This was historically important before the spread operator existed for passing dynamic argument lists.
Updated Mar 2026