DEV Community

Discussion on: Nullish Coalescing Operator Explained

Collapse
 
mandalawine profile image
Abdellatif ABAZINE

Good Article, i have enjoy it.
i think for hoursWorked ?? 1 * hourlyRate ?? 25, the reason is 1 * null = 0 and not null * null = 0.

Collapse
 
alexdevero profile image
Alex Devero

Thanks Abdellatif. I think you are correct. I will fix that mistake.