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
| 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) }; |
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
| 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() { |
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
| <section> | |
| <h3><%= t('one_master_set.title') %></h3> | |
| <p><%= t('one_master_set.content') %></p> | |
| </section> |
OlderNewer