Created
August 28, 2015 12:07
-
-
Save chuck0523/69a919bf3f263aa1a144 to your computer and use it in GitHub Desktop.
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
// Generated by CoffeeScript 1.9.3 | |
(function() { | |
var a, b, c, email, i, j, len, len1, name, ref, ref1, ref2, ref3, ref4, results, show, user, x, y; | |
ref = [1, 5, 10], a = ref[0], b = ref[1], c = ref[2]; | |
ref1 = [a, b, c]; | |
for (i = 0, len = ref1.length; i < len; i++) { | |
a = ref1[i]; | |
console.log(a); | |
} | |
x = 10; | |
y = 20; | |
show = function(a, b) { | |
return console.log(a + " : " + b); | |
}; | |
show(x, y); | |
ref2 = [y, x], x = ref2[0], y = ref2[1]; | |
show(x, y); | |
results = function(x) { | |
return [x, Math.pow(x, 2), Math.pow(x, 3)]; | |
}; | |
ref3 = results(5), a = ref3[0], b = ref3[1], c = ref3[2]; | |
ref4 = [a, b, c]; | |
for (j = 0, len1 = ref4.length; j < len1; j++) { | |
a = ref4[j]; | |
console.log(a); | |
} | |
user = { | |
name: "chuck", | |
score: 60, | |
email: "chuck@mail" | |
}; | |
name = user.name, email = user.email; | |
console.log(name); | |
console.log(email); | |
}).call(this); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment