ecma2015

Require() vs import

To import JavaScript modules the require() is used, however it is a part of old CommonJS that was initially devised for Node.js (server-side JavaScript). After ES6 (ECMAScript 2015) got released the import keyword became the new standard.