JavaScript card revieweasy

What is the difference between null and undefined?

undefined means a variable has been declared but not assigned a value, while null is an intentional assignment representing the absence of a value.

JB

Jeevan Bhargav

Audited by Creator

This answer is calibrated for technical interviews. Verify benchmarks in local sandboxes before deploying.