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
Category: JavaScript Knowledge
Basic array destructuring in ES6
When I wrote this blogpost about object destructuring in ES6, I decided that it would be easier to split up the main subject of destructuring between how to destructure objects in ES6 and how to destructure arrays. This post is part 2 and aims at giving an intro to array destructuring. The difference between arrays… Continue reading Basic array destructuring in ES6
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