Question from the AngularJS test

What is the output of the following code? ``` var g = $q.defer(); var f = $q.defer(); setTimeout(function(){ g.resolve(1); }, 1000); setTimeout(function(){ f.resolve(2); }, 2000); console.log(g.then(function(x){ return f.then(function(y){ return x + y; }); })); ```

Medium
f = function(item) {
   return $http({
      url : 'api/route',
      method : 'POST',
      data : item.data
   });
};

g = function(items) {
   x = items.map(f(item));
   return $q.all(x);
};

Select the correct assertions in the list :

Author: Mathieu RobinStatus: PublishedQuestion passed 76 times
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!