Last active
September 10, 2018 22:01
-
-
Save newhouseb/423c7296d108b715270120bb1c79ad75 to your computer and use it in GitHub Desktop.
Hello World Examples
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="metadata" style="display: none;" data-gist="423c7296d108b715270120bb1c79ad75"></div> | |
<div data-lang="md" data-visibility="output" data-autorun="false" class="block" data-source-visibility="visible"> | |
<pre class="source hljs coffeescript" contenteditable="true" style=""><span class="hljs-comment"># Hello World This is Another Test</span> | |
Here <span class="hljs-keyword">is</span> some exposition</pre> | |
<div class=""><h1 id="helloworldthisisanothertest">Hello World This is Another Test</h1> | |
<p>Here is some exposition</p></div> | |
</div><div data-lang="js" data-visibility="source" data-autorun="false" class="block"> | |
<pre class="source hljs cs" contenteditable="true">console.log(<span class="hljs-string">"Hello World"</span>); | |
bar = { | |
_count: <span class="hljs-number">1</span>, | |
<span class="hljs-function"><span class="hljs-keyword">set</span> <span class="hljs-title">count</span>(<span class="hljs-params"><span class="hljs-keyword">value</span></span>) </span>{ | |
<span class="hljs-keyword">this</span>._count = <span class="hljs-keyword">value</span>; | |
<span class="hljs-keyword">this</span>.render(); | |
}, | |
<span class="hljs-function"><span class="hljs-keyword">get</span> <span class="hljs-title">count</span>(<span class="hljs-params"></span>) </span>{ | |
<span class="hljs-keyword">return</span> <span class="hljs-keyword">this</span>._count; | |
}, | |
render: function() { | |
<span class="hljs-keyword">return</span> <span class="hljs-keyword">this</span>.count; | |
} | |
}</pre> | |
<div class="output"> | |
Output | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment