User:Evad37/ScriptModulesDemo2.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); });