José Ramón (JR)jralonso-dev.hashnode.dev·Jan 5, 2025Optionals in JavaIntroduction Optional is a class introduced in Java 8 to handle null values in order to avoid the dreadful NullPointerException (NPE). It is a wrapper class that can be used to represent a value that may be null or not. Before Java 8, developers had...Java
Lim Woojaejaylog.hashnode.dev·Nov 17, 2024[React.js] Uncaught TypeError: Cannot read properties of undefined (reading 'map')About Error When I execute this react code, <div id={id} className="row__posters"> {movies.length > 0 ? ( movies.map((movie) => { return ( <SwiperSlide> <img key={movie.id} style={{ padding: "25px...Front-endReact
Ajat Darojatajatdarojat45.id·Jul 17, 2024Cara Menggunakan Optional Chaining di JavascriptKonsep Optional Chaining (?.) yang baru saja diperkenalkan di Javascript ES2020. Versi baru dari Javascript membawa peningkatan pada implementasi saat ini dan membuat hidup kita lebih mudah sebagai developer. Kalian bisa cek Spesifikasi Bahasa ECMAC...JavaScript
Maksim Martianovmartianov.dev·Jul 4, 2024Enhancing Golang with Scala-Style Option Handling for Safer CodeAs a developer and a fan of Scala and functional languages I really like to have an ability to be able to handle optional or nullable objects safely and be able to chain them to something new. Standard way to handle them in Golang is to handle them i...Go Language
aryan sharmaaryansharma.hashnode.dev·Jun 23, 2024Optional chaining in JavaScriptHey Welcome Techies👋🏼 Hello everyone, my name is Aryan Sharma, and I hope you're all doing well. I'm thrilled to begin this JavaScript blog on Transpilers and Pollyfills for absolute beginners. You can find my other blogs on JavaScripthere↗️ Optio...10 likes·40 readsOptional chaining
Akash Satputeakashblogss.hashnode.dev·Jun 7, 2024Effective JavaScript Validation: Using Chaining, some, and trim methodValidating User Input in JavaScript: Ensuring All Fields Are Filled In web development, ensuring that all required fields are filled out correctly by the user is a crucial step. Let's explore how to perform this validation in JavaScript using a conci...20 likessomemethod
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...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...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...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...10 likesWeb Development