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