div class="qm-docs-topic-body"><div class="qm-html-paragraph"><div class="docs-examples"><div class="docs-examples"><div class="qm-code-highlight-codeblock language-js"><pre><code class="qm-code-font"><span class="hljs-comment">// create an empty set</span>
<span class="hljs-keyword">var</span> <span class="hljs-keyword">set</span> = new hx.Set;

<span class="hljs-keyword">set</span>.add('a');
<span class="hljs-keyword">set</span>.add('b');
<span class="hljs-keyword">set</span>.add('c');

// will log 3
cons