lwc:programming:javascript

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
lwc:programming:javascript [2025/03/18 13:54] John Harrisonlwc:programming:javascript [2025/03/18 13:58] (current) John Harrison
Line 83: Line 83:
 ^ Category ^ Old Skool       ^ Arrow Function          ^ ^ Category ^ Old Skool       ^ Arrow Function          ^
 | No Parameter    | function fred() = {}     | () => {}       | | No Parameter    | function fred() = {}     | () => {}       |
-| One Parameter   | function fred(a) = {} | (a) => {} |+| One Parameter   | function fred(a) = {} | (a) => {} or a => {} (parens are optional when only 1 argument)|
 | Two Parameters  | function fred(a,b) = {}     | (a,b) => {}        | | Two Parameters  | function fred(a,b) = {}     | (a,b) => {}        |
  • lwc/programming/javascript.txt
  • Last modified: 2025/03/18 13:58
  • by John Harrison