Skip to content

Instantly share code, notes, and snippets.

View kennystone's full-sized avatar

Kenny Stone kennystone

View GitHub Profile
var countdown = (function() {
var log = function(index) {
console.log(index);
},
iterate = function(index) {
log(index);
if(index>1) setTimeout(function() { iterate(index); }, 1000);
index--;
};
return function() { iterate(10) };
var logCar = function(car) {
console.log("I am a " + car.color + ' ' + car.make);
}
logCar({ color: 'blue', make: 'BMW' });
var Car = function(make, color) {
this.color = color;
this.make = make;
this.log = function() {
<section>
<h3><%= t('one_master_set.title') %></h3>
<p><%= t('one_master_set.content') %></p>
</section>