GSGurjeet Singhinblog.gurjeet.tech·Mar 15 · 6 min readUnderstanding Object-Oriented Programming in JavaScriptWhen we build real applications, our code starts to grow. We have data, we have functions that work on that data, and before long everything is spread across the file with no clear structure. Things g00
GSGurjeet Singhinblog.gurjeet.tech·Mar 15 · 6 min readUnderstanding Objects in JavaScriptWe have all filled out a form at some point. A school admission form, a job application, a signup page. What does it ask for? Your name, your age, your city, your course. Multiple pieces of informatio00
GSGurjeet Singhinblog.gurjeet.tech·Mar 15 · 6 min readThe Magic of this, call(), apply(), and bind() in JavaScriptThere is a keyword in JavaScript that confuses almost every beginner the first time they run into it. That keyword is this. It shows up everywhere, it behaves differently depending on where it is used00
GSGurjeet Singhinblog.gurjeet.tech·Mar 15 · 5 min readJavaScript Arrays 101Let's say we want to store the names of five students in our program. Without arrays, we would do something like this: let student1 = "Gurjeet"; let student2 = "Priya"; let student3 = "Rahul"; let stu00
GSGurjeet Singhinblog.gurjeet.tech·Mar 15 · 4 min readFunction Declaration vs Function Expression: What's the Difference?At some point while learning JavaScript, we all write our first function and feel pretty good about it. But then we start seeing functions written in a completely different way in tutorials, open sour00