Javascript Requests


#1

Code

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???


#2

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


#3

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.