Last active
August 29, 2015 14:26
-
-
Save antonkartashov/555eece392e4e5a9575d to your computer and use it in GitHub Desktop.
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 number = 32; | |
var approve = true; | |
if (opposite) { | |
number = - 42; | |
} | |
twice = function (x) { | |
return x * 2; | |
} | |
number = twice (3); | |
for (var i = 0, i < 30; i++) { | |
print("go!"); | |
} | |
cubes = (function() { | |
var i, len, results; | |
results = []; | |
for (i = 0, len = list.length; i < len; i++) { | |
num = list[i]; | |
results.push(math.cube(num)); | |
} | |
return results; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment