Skip to content

Instantly share code, notes, and snippets.

@jurosh
Created June 27, 2016 08:38
Show Gist options
  • Save jurosh/1b0cd72b518b16a316f5166afe890bf1 to your computer and use it in GitHub Desktop.
Save jurosh/1b0cd72b518b16a316f5166afe890bf1 to your computer and use it in GitHub Desktop.
Narnia: global ids
<html>
<head>
</head>
<body>
<div id="daco"></div>
<script>
console.log(daco);
</script>
<script>
"use strict";
if (typeof daco !== 'undefined') {
console.log('co ti praaaaska... otvorte satnik ideme do Narnie');
}
console.log(daco);
daco = 'ddd';
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment