Sunil Kumar Sainisunilsaini.hashnode.dev·Apr 5, 2024Optional chaining in JavaScriptOptional chaining is a feature in JavaScript to simplify accessing properties or calling methods deeply nested within an object structure, especially when dealing with potentially nullable or undefined intermediate properties. It's denoted by the que...Discuss·10 likesJavaScript
decpkdecpk.hashnode.dev·Mar 23, 2024Optional chaining in depthTLDR; Optional chaining (?.) prevents runtime errors when accessing properties or methods of potentially null or undefined objects by short-circuiting the expression and returning undefined instead. It's an abstraction over null or undefined checks a...Discuss·10 likesJavaScript
Yuvraj Singhyuvrajsingh.hashnode.dev·Mar 18, 2024Demystifying the "Cannot Read Properties of Undefined/Null" Error in JavaScriptIntroduction JavaScript, as a versatile and dynamic language, empowers developers to create powerful web applications. However, even seasoned developers encounter the infamous "Cannot Read Properties of Undefined/Null" error. In this blog post, we'll...Discuss·10 likesObject wrappers
Md Shah Aman Patwarymdshahamanpatwary.hashnode.dev·Feb 16, 2024Optional Chaining in JavaScript .JavaScript development often involves navigating through nested objects, which can be cumbersome and error-prone, especially when dealing with null or undefined values. Enter optional chaining—a game-changer in modern JavaScript syntax. In this artic...Discuss·10 likesWeb Development
Gaurav J Somanigaurav750.hashnode.dev·Oct 30, 2023Mastering TypeScript: Beyond the Basics with Interfaces, Generics, and MoreMany of us have already dabbled with the basic types TS provides and experienced the safety it provides. But Typescript, like an iceberg, has layers beneath its surface - features that can make our code more flexible, robust and maintainable. In this...Discuss·2 likes·46 readsTypeScript Generics
Jiwon Yujingwangjjang.hashnode.dev·Oct 26, 2023[JavaScript] What is Optional chaining (?.)?The optional chaining (?.) operator accesses an object's property or calls a function. If the object accessed or function called using this operator is undefined or null, the expression short circuits and evaluates to undefined instead of throwing an...Discuss·36 readsJavaScript
Mikeydraken.hashnode.dev·Oct 11, 2023Optional Chaining in JavaScriptOptional chaining is a handy feature introduced in ES2020 that allows you to safely access nested properties on an object without having to check if each reference in the chain is valid. This helps avoid pesky errors like cannot to read property 'x' ...Discuss·35 readsOptional chaining
Thet Lin HanforDSS Devdssdev.hashnode.dev·Sep 5, 2023Javascript Optional Chain (object?.foo)ဒီနေ့ပြောပြပေးသွားမှာက ပေါ့ပေါ့ပါးပါး နဲ့ အရမ်းအသုံးဝင်တဲ့ JavaScript ရဲ့ special syntax တစ်ခုဖြစ်တဲ့ optional chain [?.] လေးအကြောင်းပါ။ အဖြစ်များတဲ့ type error ❌ Optional chain လေးအကြောင်းမပြောခင် အောက်က code example လေးတစ်ခုကို အရင်ကြည့်ကြမယ်။ cons...Discuss·5 likes·60 readsJavaScript
Emerson Souzablog.lublot.dev·Jul 17, 2023Unleashing the Power of Optional Chaining in TypeScriptWhat is Optional Chaining? Optional Chaining is a feature in TypeScript that allows you to access nested properties of an object or call chained methods, even when one or more of these properties are null or undefined. It provides a safe and concise ...DiscussTypeScript
Vaibhav Upadhyayinfinityvaibhav.hashnode.dev·Jul 16, 2023Optionals in SwiftIn Swift, optionals are a powerful feature that allows you to represent the absence of a value for a particular variable or constant. Optionals are used to handle situations where a value may be present or may be missing (nil). The concept of optiona...DiscussiOS