concept circular dependency in category javascript

appears as: circular dependencies, circular dependency
JavaScript Application Design: A Build First Approach

This is an excerpt from Manning's book JavaScript Application Design: A Build First Approach.

Before discussing the changes coming to the JavaScript language in ECMAScript 6, there’s one more topic we need to tend to. That’s the topic of circular dependencies, such as a chicken depending on an egg that depends on a chicken.

5.4.4. Learning about circular dependencies

Circular dependencies, explained previously as a chicken depending on an egg that depends on a chicken, are a tough nut to crack, and they’re straight up unsupported by many module systems. In this brief section I aim to dispel any issues you have by answering the following questions:

  • Is there a good reason to use circular dependencies?