+ 1
Modules in javascript
I am coding a Cool Rock, paper, scissors game , and i decided to split my javascript functionality into different modules and import them so that i can keep my code clean, encapsuled and reusable , but here's the bug i cant import these JS files into my main Js file , it keeps printing out errors to the browser console and nothing is working im a bit confused here, Please Your suggestions would really count 🖐🖐
1 Respuesta
+ 1
Have you put type="module" in your script tag?
Describe the errors you get