Javascript Requests



In above exercise we have two javascript files, i.e. main.js and helperfunction.js, we are calling functions in main.js which are mentioned in helperfunction.js but without using module i.e. importing or exporting functions. Why???


That’s a good question. I didnt get that, either.


These scripts affect a webpage so are implied to be imported through <script> tags, in which case the one linked second can call functions from the first.