Evaluating JavaScript Code via Import()

The import() operator lets us dynamically load ECMAScript modules. But they can also be used to evaluate JavaScript code (as Andrea Giammarchi recently pointed out to me), as an alternative to eval(). This blog post explains how that works. Read more

Similar

On JavaScript Ecosystem

Published on 25 March 2021Table of contents#IntroTask runners, bundlers, toolsLanguage ergonomicsAsynchronous revolutionFlux case studyPeople factorClosing thoughtsIntro#A colleague of mine recently asked whether we consider the current state of the JavaS... (more…)

Read more »