User:Evad37/ScriptModulesDemo2/sandbox.js

Window.importScriptModule(['hello', 'goodbye']).then(function(welcome, bye) {	var name = mw.config.get('wgUserName');	var greeting = welcome(name) + ' This is Demo #2.';	console.log(greeting);	var departing = 'Thank you for visiting this demo. ' + bye(name);	console.log(departing); }, function(failure) {	console.log('ScriptModulesDemo2 failure: '+failure); });