First off, you have to include the type="module"
attribute in your script
tag.
Secondly, when using the import statement, don't leave out the file extension, in this case .js
.e.g: import { sqrRoot } from "./math_function.js"
First off, you have to include the type="module"
attribute in your script
tag.
Secondly, when using the import statement, don't leave out the file extension, in this case .js
.e.g: import { sqrRoot } from "./math_function.js"