Skip to main content
InterviewHubPRO
Section Overview
Q78

Question 78 of 536

Part 2: Promises, Callbacks, Async & Strict Mode (54 - 103)

15%
JavaScript & V8 Internals (536 Qs)•Part 2: Promises, Callbacks, Async & Strict Mode (54 - 103)

What is null value

junior LevelMost AskedCode ExampleAsync & Promises

The value null represents the intentional absence of any object value. It is one of JavaScript's primitive values. The type of null value is object. You can empty the variable by setting the value to null.

javascript
var user = null;
console.log(typeof user); //object