Day18 Higher order functions

Higher order functions:

  1. Pass a function name as an argument to another function (add functionality to the decorated function without modifying its source code)
  2. The return value contains the function name (does not modify the calling method of the function)

Nested functions:

function declares another function

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324870917&siteId=291194637