JavaScript generated from CoffeeScript
var square;
square = function(n) {
var i, _results;
_results = [];
for (i = 1; 1 <= n ? i <= n : i >= n; 1 <= n ? i++ : i--) {
_results.push(i * i);
}
return _results;
};
document.write(square(10));