0 votes
in JavaScript by
What is null value in Javascript?

1 Answer

0 votes
by

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.

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

Related questions

0 votes
asked Oct 8, 2023 in JavaScript by JackTerrance
0 votes
asked Mar 15 in JavaScript by DavidAnderson
...