snipt

Ctrl+h for KB shortcuts

JavaScript

Test Object

1
2
3
4
var firstOb = {
   objName: "First Object",
   objAction: "Testing snipt.net"
}
https://snipt.net/embed/bac19d24607029c004b0236de60c5851/
/raw/bac19d24607029c004b0236de60c5851/
bac19d24607029c004b0236de60c5851
js
JavaScript
4
2019-08-19T23:40:44
True
False
False
/api/public/snipt/2469/
test-object
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="kd">var</span> <span class="nx">firstOb</span> <span class="o">=</span> <span class="p">{</span> </span><span id="L-2"><a name="L-2"></a> <span class="nx">objName</span><span class="o">:</span> <span class="s2">&quot;First Object&quot;</span><span class="p">,</span> </span><span id="L-3"><a name="L-3"></a> <span class="nx">objAction</span><span class="o">:</span> <span class="s2">&quot;Testing snipt.net&quot;</span> </span><span id="L-4"><a name="L-4"></a><span class="p">}</span> </span></pre></div> </td></tr></table>
javascript