SSaumyainblog.saumyagrawal.in00Error HandlingMar 26 · 5 min read · Every developer learns this eventually, usually at the worst possible time. You write something, it works on your machine, you ship it, and then a user does something you didn't predict, types lettersJoin discussion
SSaumyainblog.saumyagrawal.in00Callback FunctionsMar 25 · 6 min read · Before callbacks make sense, one thing has to click: in JavaScript, a function is a value. Like a number. Like a string. You can store it in a variable, pass it to another function, even return it froJoin discussion
SSaumyainblog.saumyagrawal.in00The New KeywordMar 25 · 7 min read · You see new everywhere. new Date(). new Map(). new Promise(). You write it, it works, and you move on. But at some point you start wondering what it actually does. Calling a function with new in frontJoin discussion
SSaumyainblog.saumyagrawal.in00Destructuring in JSMar 25 · 6 min read · You have an object. It has properties. You want those properties as standalone variables. Before destructuring, you wrote one line per property. With destructuring, you write one line total. That's thJoin discussion
SSaumyainblog.saumyagrawal.in00Map & SetMar 24 · 6 min read · Two situations come up all the time in JavaScript. You need to store key-value pairs where the keys are not strings. Or you need a list where every item appears exactly once. Both times, most people rJoin discussion