Javascript ES6 - Enums inside classes used outside like a static enum : <p>I'd like to ask if it's possible to add an enum similar to:</p>

<pre><code>STATES = {
    WIP: "Work in progress",
    ONLINE: "Online",
    ONLINE_MODIFIED: "Online, modified",
    HIDDEN: "Hidden"
}
</code></pre>

<p>inside a Class, and be able to use it in some other file with something similar to: <code>object.updateState(Class.STATES.HIDDEN)</code> without having to construct a new object like <code>boxObject.updateState(new Box().STATES.HIDDEN)</code></p>

<p>Thank you.</p>
