User:Evad37/sandbox.js

/* This is Evad37's Javascript sandbox – a testing spot for small bits of js code */

// ES6 module import test // This script can't be imported as usual via mw.loader, since it needs to be // inside tags

/* jshint esnext:false, esversion: 6, laxbreak: true, undef: true, eqnull: true, maxerr: 999 */ /* globals console, document, File, FileReader, fetch, window, $, mw, OO */ import * as S2Mod from "https://en.wikipedia.org/wiki/User:Evad37/sandbox2.js?action=raw&ctype=text/javascript";

S2Mod.helloWorld; console.log("1 + 1 =", S2Mod.add(1,1));