Skip to content

Files

Latest commit

 

History

History
20 lines (14 loc) · 478 Bytes

File metadata and controls

20 lines (14 loc) · 478 Bytes

Pattern: Use of AMD module

Issue: -

Description

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.

Examples

Example of incorrect code:

require([a, b], function () {});

Example of correct code:

require("../name");
require(`../name`);