Nullish coalescing (??) & Optional chaining (?.) in JSIntroduction While writing JavaScript code we come across multiple errors like TypeError: Cannot read property TypeError: ‘undefined’ is not an object TypeError: null is not an object and these errors were caused when we try to reference a varia...Feb 23, 2023 · 3 min readamankumr.hashnode.dev
Reference error VS Type error in JSIntroduction You must have come across multiple errors while writing JS code. In this blog, we will understand the difference between Reference Error and Type Error and how we can avoid these errors in our code. Hope this blog helps you understand th...Feb 16, 2023 · 2 min readamankumr.hashnode.dev
Why does Console return “undefined” on executing the log method ?You've probably noticed some strange behavior if you've ever used console.log() in the browser. that you get "undefined" after printing the expected value to the console. Have you ever wondered why the console displays "undefined" as a result? Allow...Feb 16, 2023 · 1 min readamankumr.hashnode.dev