Why is the blame for fewer Lok Sabha seats being placed on Hindus? And why wasn't Yogi Adityanath ji invited to the first NDA meeting after the elections, especially when every major BJP leader was present? @BJP4India, Please clarify. #LokSabha#NDAMeeting#YogiAdityanath
Day 10 of #20daysofFrontendInterviewPrep 🔎👇
Q) What is the difference between null and undefined?
In JavaScript, null and undefined are both special values that represent the absence of a meaningful value, but they are used in slightly different contexts.
- undefined:
When a variable is declared but not initialized, it automatically gets assigned the value undefined.
If you try to access an object property that doesn't exist, you get undefined.
- null:
It is a value that represents the intentional absence of any object value.
You can explicitly assign a variable or object property the value null to indicate no value or no object.
It is often used to indicate that a variable or object property should have no value or that the value is unknown or irrelevant.
Conclusion is, undefined is typically a default value that indicates the absence of an assigned value, while null is a value that needs to be explicitly assigned to indicate a deliberate absence of a meaningful value.
@CodeByPoonam I have completed my learning in javascript, react, node and express.I really need an internship.Anyone who can help me to get an opportunity please help me . I needed an opportunity, because wherever I apply they ask for experience.And for the experience i need the opportunity