Created
August 24, 2012 20:10
-
-
Save pedroreys/3455113 to your computer and use it in GitHub Desktop.
Job Security
This file contains 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
функция f(x) { | |
если (x % 2 == 0) { | |
возврат истина; | |
} иначе { | |
возврат ложь; | |
} | |
} | |
для (пер i = 0; i < 10; i++) { | |
console.log(i, f(i)); | |
если (i > 5) прервать; | |
} | |
пер Terve = функция(nimi) { | |
этот.nimi = nimi; | |
}; | |
Terve.прототип = {}; | |
Terve.прототип.moi = функция() { | |
console.log( "Moi, " + этот.nimi + "!" ); | |
}; | |
пер tere = нов Terve("Veijo"); | |
tere.moi(); | |
для (пер i в tere) { | |
console.log(i); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment