Importar um módulo em ExpressJs
<script type="module">
import test from "/javascripts/test.js";
console.log(test)
/*will return the value of test*/
</script>
/*to you your own modules(e.g. ones in your project/folders), you need to run the code in localhost to use import, without localhost you will get an error*/
Javasper