Stop checking for null or undefined manually when receiving data from an API.
// The Pro Way
const { name, role = 'User', status = 'Active' } = apiResponse;
console.log(`${name} is a ${role}`);
Why? It makes your code more resilient and readable by providing fallback values directly in the declaration.
