{"size": 323, "ext": "js", "max_stars_repo_path": "Tricky Problems/SwapWithoutTempVar.js", "max_stars_repo_name": "Praggya17/HacktoberFestContribute", "max_stars_repo_stars_event_min_datetime": "2018-10-09T15:42:41.000Z", "max_stars_repo_stars_event_max_datetime": "2021-10-04T15:25:44.000Z", "max_issues_repo_path": "Tricky Problems/SwapWithoutTempVar.js", "max_issues_repo_name": "Praggya17/HacktoberFestContribute", "max_issues_repo_issues_event_min_datetime": "2018-10-06T16:55:20.000Z", "max_issues_repo_issues_event_max_datetime": "2021-10-31T18:25:35.000Z", "max_forks_repo_path": "Tricky Problems/SwapWithoutTempVar.js", "max_forks_repo_name": "Praggya17/HacktoberFestContribute", "max_forks_repo_forks_event_min_datetime": "2018-10-06T17:14:44.000Z", "max_forks_repo_forks_event_max_datetime": "2022-01-29T03:16:21.000Z"}
{"max_stars_count": 98, "max_issues_count": 141, "max_forks_count": 885, "avg_line_length": 21.5333333333, "max_line_length": 54, "alphanum_fraction": 0.7151702786}
interface Numbers {
  first: Number,
  second: Number
}

function swapWithoutTempVar(input: Numbers): Numbers {
  input.second = input.first + input.second;
  input.first = input.second - input.first;
  input.second = input.second - input.first;
  
  return input;
}

console.log(swapWithoutTempVar({first: 3, second:5}));
