Using ES6 modules in the browser.
So far you have used modules import/export
in NodeJS and in the front-end you have used script
tags to import your source code.
You can actually use modules in your front end code. And frameworks like ReactJS & VueJS are heavily using that. To do that though you will need a tool that convert the JavaScript that is using modules into JavaScript that can be executed in the browser.