JS Coding Questions Logo
JS Coding Questions
#74💼 Interview💻 Code

What is null value

Advertisement

728x90

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
1var user = null;
2
3console.log(typeof user); //object

Advertisement

Responsive Ad
🎯 Practice NowRelated Challenge

JavaScript Coding Exercise 75

Test your knowledge with this interactive coding challenge.

Start Coding

Advertisement

728x90
74of476