Skip to content

Instantly share code, notes, and snippets.

@antonkartashov
Last active August 29, 2015 14:26
Show Gist options
  • Save antonkartashov/555eece392e4e5a9575d to your computer and use it in GitHub Desktop.
Save antonkartashov/555eece392e4e5a9575d to your computer and use it in GitHub Desktop.
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