Understanding imports and exports in JavaScript

Imagine you’d never heard of ES6 or any JS framework like React or Angular (and maybe, if you’re like me a couple of weeks ago, you don’t even have to imagine. That’s fine!). How would you organize your JavaScript code? If you’re not building super complex applications, you might just save your JS code in… Continue reading Understanding imports and exports in JavaScript

Intro to JavaScript constructor functions

Constructor functions in JavaScript help us create new objects with similar properties and behaviors (methods), without the need to set them up one by one. This makes life much easier and less repetitive, especially when we need to work with lots of data that is stored in objects. The basics When using a constructor function… Continue reading Intro to JavaScript constructor functions

Basic object destructuring in ES6

During my coding exercises, I had briefly touched destructuring and noted that I wanted to repeat that lesson at some point, and now that I’m on my React intro course, I realize that I should make sure I fully understand destructuring in ES6. I’ll break this topic down into object and array destructuring, starting with… Continue reading Basic object destructuring in ES6