Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Why is null an object and what’s the difference between null and undefined?

soniajain

Newbie
Joined
May 15, 2023
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Location
United States
Activity points
34
For what reason null considered an object in JavaScript?

Code:
if ( object == null )     
Do something

the same as
Code:
if ( !object )     
Do something

Additionally, could somebody at any point put a portion of their perspectives on the contrast among null and undefined?
 

LaTeX Commands Quick-Menu:

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top