Pattern: Use of AMD module
Issue: -
AMD (Asynchronous Module Definition) is an older module format that adds unnecessary complexity and is considered outdated. Modern JavaScript development favors ES6 modules and CommonJS in Node.js for better maintainability and consistency.
Example of incorrect code:
require([a, b], function () {});
Example of correct code:
require("../name");
require(`../name`);