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...3 min read·amankumr.hashnode.devFeb 23, 2023
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...2 min read·amankumr.hashnode.devFeb 16, 2023
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...1 min read·amankumr.hashnode.devFeb 16, 2023