Home / Javascript Tips Generated By ChatGPT / Using the Nullish Coalescing Operator (??) in Javascript Use ?? to provide a default value if the first value is null or undefined. Source Code let userName = null; let displayName = userName ?? 'Guest'; console.log(displayName);