2 posts tagged with "javascript"

Value Types vs Reference types in JavaScript Explained

Posted on January, 2021

When storing a variable in JavaScript, the JavaScript engine may store it as one of two types of values: a primitive or reference value. Understanding the difference in how they behave will help to avoid mistakes while manipulating them. An Example Instead of jumping straight into a boring explaination, consider this script: We may expect the output to be…

Read full post

How to use Dynamic Imports in ES2020

Posted on December, 2020

One of the most exciting new features, for me, in ES2020 is the ability to dynamically import your files. This means that rather than importing all your potentially necessary files at the top of your file, you can just import files based on need. Imports Import was introduced in ES2015, since then we have been able to natively load our modules in our code…

Read full post