अपना विज्ञापन/बैनर लगाने के लिए संपर्क करें
Home
Hindi news
एजुकेशन
स्वास्थ्य
मनोरंजन
विज्ञान और टेक्नोलॉजी
राजनीति
क्रिकेट
जीवन शैली
बैंकिंग
पर्व-त्योहार
कविता-कहानी
Gold Price
Fuel Price
Petrol Price
Diesel Price
CNG Price
LPG Price
Autogas Price
Quizzes & Answers
COMMON SERVICE CENTERS & IFSC CODE
PAN Card
Aadhaar Card
COMMON SERVICE CENTERS (CSC)
Bank IFSC Code
×
Home
Quizzes Answers
LinkedIn Skill Assessment Quiz
Javascript
Question:
How can you attempt to access the property `a.b` on `obj` without throwing an error if a is undefined?
`obj?.a.b`
`obj.a?.b`
`obj[a][b]`
`obj.?a.?b`
Answer:
The correct answer of the above question is Option B:
`obj.a?.b`
Follow Us
Copyright © 2024 All Rights Reserved.