how to detect when a function parameter is abscent in javascript code example Example: how to check for missing parameter javascript a = a || "AAA";