learn "js you don"t know" Chapter 5-Future Module Mechanism. It"s not very clear to see here. Does es6 have a way to import modules into module?
module foo from "foo";
module bar from "bar";
console.log(
bar.hello( "rhino" )
);
import can import one or more API from a module into the current scope and bind them to a variable (in our case, hello). Module imports the API of the entire module and binds it to a variable (foo and bar in our case). Export exports an identifier (variable, function) of the current module as a common API. These operations can be used as many times as needed in the module definition.