Tag:Not quantitative

  • JavaScript functions

    Time:2021-4-23

    1. Essence:Encapsulate a sectionCan be called repeatedlyCode block executed 2. Statement Named function(also known as custom function)Function function name () {}Anonymous function (also known as function expression)Var variable name = function () {} 3. CallFunctions can be separatedCall each other, function name followed by () 4. ParametersFormal parameter (default undefined)Function function name (parameter 1, parameter […]