Pergunta de entrevista da empresa HyperGuest

What is the error that would be thrown from the next code? //a.js require("./b") const hi = () => { console.log("hi") } module.exports=hi //b.js const a = require("./a"); module.exports = a //c.js const b = require("./b") b.hi() //CMD node c.js

Resposta da entrevista

Sigiloso

18 de mar. de 2024

cyclic dependency