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 myObj = (function() { | |
| function myObj(something) { | |
| this.something = something; | |
| } | |
| function privateMethod() { | |
| console.log("private method called"); | |
| } | |
| myObj.prototype.publicMethod = 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
| #include <stdio.h> | |
| int main() <% | |
| int x <:3] = {1, 2, 3%>; | |
| printf("%d, %d, %d\n", x[0:>, x<:1], x<:2:>); | |
| return 0; | |
| } |
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
| secret_number gets between: 1 10 | |
| 3 times | |
| write: Choose a number from 1 to 10. | |
| my_number gets ask: > | |
| if my_number is @secret_number | |
| write: You win! The number was @secret_number. | |
| quit | |
| else |
NewerOlder