I have the following function call:
var qid = 6;
var $scope.qidLower = null;
var $scope.qidUpper = null;
_o.parseRange(qid, $scope.qidLower, $scope.qidUpper);
// Checking after here the values of $scope.qidLower and $scope.qidUpper are null !
This is passed to my function:
  var _parseRange = function (text, lower, upper) {
       if (!text || text === "") {
           lower = null;
           upper = null;
       }
       else if (text.indexOf("-") > 0) {
           arr = text.split("-");
           lower = +arr[0];
           upper = +arr[1];
       }
       else {
           lower = +text;
           upper = null;
       }
   }
When I check the values of lower and upper the function sets them to 6 and null
When I now $scope.qidLower, $scope.qidUpper on the line after the function call they are both null.
Can someone explain why this is happening. I thought if the function modifies a parameter value that it would be available after the function returns.
 
     
    