30-Days-Of-JavaScript icon indicating copy to clipboard operation
30-Days-Of-JavaScript copied to clipboard

Exercise: Level 2 Q.1

Open devprotim opened this issue 2 years ago • 3 comments

Create a separate countries.js file and store the countries array in to this file, create a separate file web_techs.js and store the webTechs array in to this file. Access both file in main.js file

I have tried import export module but not working for me...

devprotim avatar May 06 '22 10:05 devprotim

Could you be more specific as to what folders these files are in

Kaybangz avatar Jun 19 '22 19:06 Kaybangz

Hello dev, If you want to access other js files in the main.js. You can try something like this: <script src="./countries.js"></script> <script> console.log(countries) </script> This way you can access any files in the folder using src. Hope it helps.

suvrat23 avatar Sep 16 '22 03:09 suvrat23

Hey @devprotim, did you find the solution?

Aravindray avatar May 06 '24 09:05 Aravindray