How to use UMD in browser without any additional dependencies
<p>Suppose I have an UMD module like this (saved in <em>'js/mymodule.js'</em>):</p>

<pre><code>(function (global, factory) {
  typeof exports === 'object' &amp;&amp; typeof module !== 'undefined' ?     factory(exports) :
  typeof define === 'function' &amp;&amp; define.amd ? define(['exports'], factory) :
  (factory((global.mymodule = global.mymodule || {})));
}(this, function (exports) { 'use strict';
    function myFunction() {
        console.log('hello world');
    }
}));
</code></pre>

<p>How can I use this module in an HTML file like this? (without requirejs, commonjs, systemjs, etc...)</p>

<pre><code>&lt;!doctype html&gt;
&lt;html&gt;
&lt;head&gt;
    &lt;title&gt;Using MyModule&lt;/title&gt;
    &lt;script src="js/mymodule.js"&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;script&gt;
/* HOW TO USE myFunction from mymodule.js ??? */
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>Many thanks in advance for any help.</p>