Comments

JavaScript: Event bubbling and delegation

Handling events is a crucial part of any modern web application. Every developer who works with JavaScript in the browser would benefit from having a deeper knowledge of how events work, what is event bubbling and how to use delegation to optimize the event handling in an app. Well, this is exactly what we are […]

Tags: , , ,
Comments

Why I use Java and Why You Should Learn It Too

If you’ve been following me, you’ve probably noticed that I’ve used Java in my Ultimate Data Structures and Algorithms course. I’m also planning to use Java in my upcoming Design Patterns course. But why Java? Why not C#, JavaScript, or Python? Well… there were a few well-thought reasons behind this decision. The top 3 programming […]

Tags: , , ,
Comments

JavaScript: Objects, Arrays, Maps and Sets

Not so long ago, JavaScript used to have only two ways of representing complex data: objects and arrays (OK, technically, an array is an object, but for the sake of simplicity, let’s make a distinction between them in this article). Now, this scenario has changed and we have a number of new data structures to […]

Tags: , , , ,
Comments

JavaScript properties, getters and setters

The concept of getters and setters is quite common among popular languages in use today. Have you ever needed to ensure that a given action is always performed before or after assigning some value to an object’s property? This is possible with setters. You can also perform any sort of processing when retrieving the value […]

Tags: , , ,
Comments

JavaScript Null vs. Undefined Explained

JavaScript is an interesting language with lots of quirks. One such confusing aspect in JavaScript is the differences and similarities between Null and Undefined. Most programmers are aware of null. It is common in other programming languages. But what on earth is undefined in JavaScript? null in JavaScript null means there is no value. Just like in […]

Tags: , , ,
Comments

JavaScript Console Debugging: Beyond The Basics

If you are a JavaScript developer, you have probably used console.log() a lot to debug your applications. Did you know you could do more than just the plain console.log() logging. In this post, lets look into some debugging tips, that will help you debug your application using the console. The Basics of Console Logging Let’s get the […]

Tags: , , , ,
Comments

Handling JavaScript Errors With Try, Catch and Finally

Does debugging through errors drive you crazy sometimes? Working through errors can be time consuming, while debugging an application. It is important to write clean code that accounts for error handling. In this post, we will learn how to use Try, Catch and Finally to handle JavaScript errors. Types of JavaScript Errors Errors are actually […]

Tags: , , , , ,
Comments

JavaScript: Wrapper objects

One thing we have learned about OOP is that objects can have properties and methods, as opposed to primitive values, that represent a simple data. This concept looks like something basic (in fact, it is), however, some apparent contradictions arise when we try to apply it to JavaScript. Keep reading and you’ll learn what are […]

Tags: ,
Comments

JavaScript spread and rest

Have you ever seen three dots (…) in any modern JavaScript code? Do you know that this syntax is used for spread and rest, two different features of JavaScript? In this article, you’ll learn the multiple usages of both features and discover how they can make your code more succinct, readable and elegant. One syntax, […]

Tags: , ,
Comments

Functional Programming Demystified: Currying Vs Partial Application

Most JavaScript developers don’t understand Currying & Partial Application. But written much JavaScript chances are good you’ve reaped the benefits of these concepts. It’s worth taking the time to figure out what is actually going on underneath the hood. The concepts I cover in this article will come up in interviews, JavaScript Promises, libraries like […]

Tags: , , , , , , , , , ,
Connect with Me
  • Categories
  • Popular Posts