blog.suprabhat.siteArrow Functions in JavaScript: A Simpler Way to Write FunctionsIf there is one thing programmers love, it is writing less code to achieve the exact same result. In older JavaScript, every time you wanted to create a function, you had to write out the full word fu1d ago·4 min read
blog.suprabhat.siteFunction Declaration vs Function Expression: What’s the Difference?Imagine you are running a coffee shop. Every time a customer orders a latte, you have to grind the beans, steam the milk, and pour the espresso. If you had to write down these exact instructions for e1d ago·5 min read
blog.suprabhat.siteThe Magic of this, call(), apply(), and bind() in JavaScriptIf you spend enough time writing JavaScript, you will eventually run into a keyword that causes a lot of headaches for beginners: this. In English, we use pronouns like "he", "she", or "it" so we don'1d ago·5 min read
blog.suprabhat.siteUnderstanding Objects in JavaScriptLet’s think about how we describe things in the real world. If someone asks you to describe yourself, you wouldn't just hand them a random list of facts like: ["Suprabhat", 23, "Meerut", true]. If you2d ago·5 min read
blog.suprabhat.siteArray Methods You Must KnowWhen you are building a website or web app, you will constantly work with lists of data: a list of users, a list of products, or a list of messages. In JavaScript, we store these lists in Arrays. But 2d ago·5 min read