xitij2000
12/8/2011 - 1:43 PM

JavaScript generated from CoffeeScript

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));