How does JavaScript import find the module without an extension?
Would it depend on the version of javascript? No, it depends on the behavior of JavaScript runtime, that is, the thing that executes your script. In a browser with support for ES Modules (ESM), no extensions will be added to the URL that you import – if your file for example has .js extension, you … Read more