I want to use the doAlert function in the index.js file. Now, how do I use import and export in this situation?
//index.html
<script type="module" src="index.js"></script>
//index.js
/*'index.js' is an empty file.*/
//doAlert.js
function doAlert() {
alert('Hello');
}