Skip to content

Instantly share code, notes, and snippets.

@alexismaster
Created March 12, 2013 11:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexismaster/5142338 to your computer and use it in GitHub Desktop.
Save alexismaster/5142338 to your computer and use it in GitHub Desktop.
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
<!-- content to be placed inside <body>…</body> -->
<div id="container"></div>
var echo = function (html, clear) {
var div = document.getElementById('container');
if (clear) div.innerHTML = '';
div.innerHTML += html;
}
var a = new Array(); // Пустой массив
var s = new String('false'); // Строка "false"
var o = new Object(); // Пустой объект
echo('', true);
if (!!a === true) echo('<br/>Пустой массив в логическом контексе = false? Авотхуй!');
if (!!s === true) echo('<br/>Строка "false" в логическом контексе = false? Авотхуй!');
if (!!o === true) echo('<br/>Пустой объект в логическом контексе = false? Авотхуй!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"javascript"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment