How to include js file in another js file? [duplicate] May 18, 2022 by IT Nursery How can I include a js file into another js file , so as to stick to the DRY principle and avoid duplication of code. 4 Answers 4