Currently, I am working on a project where I am utilizing Django for the backend and HTML/CSS/JS for the frontend development.
On a specific HTML page, I am including two JS files: dom_creator.js and console_page.js. My goal is to access the functionalities of dom_creator within console_page, but no matter what approach I take, I am unable to locate the correct import statement. Additionally, some of the ES6 import statements I have tried actually cause console_page.js to malfunction.
Another component in my HTML is the imported module console_module.js. In this file, I have successfully imported dom_creator.js using the following syntax:
import {function1, function2} from "./dom_creator.js"
My question is, how can I import functions from dom_creator into console_page.js, which is not a module? Despite consulting various solutions on Stack Overflow, none of them have proven effective in my case.