jashkenas--coffeescript/documentation/js/multiple_return_values.js

11 lines
243 B
JavaScript

(function(){
var _a, city, forecast, temp, weatherReport;
weatherReport = function(location) {
return [location, 72, "Mostly Sunny"];
};
_a = weatherReport("Berkeley, CA");
city = _a[0];
temp = _a[1];
forecast = _a[2];
})();