Javascript – Is dynamic import useful in node.js?
I'm fairly new to node.js/express and I really like it so far. I use ES6 Syntax for imports. When i started my project, i created all my routes like this : app.get("/getmenu", (req, res) => { import("./js/get/getmenu.js").then((result) => { result.getMenus(req).then((menu)…