JavaScript Professional — Hard
Key points
- Circular dependencies can lead to issues with variable access timing
- In this case, b.js tries to access a from a.js before it is fully defined
- This can cause b to receive undefined due to the timing of execution
Ready to go further?
Related questions
