8 kyu

Swap Values

9,263 of 25,595dnolan

Description:

I would like to be able to pass an array with two elements to my swapValues function to swap the values. However it appears that the values aren't changing.

Can you figure out what's wrong here?

Debugging
Arrays
Fundamentals

More By Author:

Check out these other kata created by dnolan

Stats:

CreatedMay 30, 2014
PublishedMay 30, 2014
Warriors Trained40176
Total Skips762
Total Code Submissions63040
Total Times Completed25595
JavaScript Completions9263
CoffeeScript Completions64
Java Completions3413
C# Completions1313
Python Completions7423
C++ Completions4757
C Completions106
Lua Completions22
Total Stars229
% of votes with a positive feedback rating84% of 2517
Total "Very Satisfied" Votes1883
Total "Somewhat Satisfied" Votes460
Total "Not Satisfied" Votes174
Ad
Contributors
  • dnolan Avatar
  • jhoffner Avatar
  • JoshSchreuder Avatar
  • Javatlacati Avatar
  • Dentzil Avatar
  • rowcased Avatar
  • Avanta Avatar
  • hobovsky Avatar
  • albertogcmr Avatar
  • SergeySinyavskiy Avatar
  • KayleighWasTaken Avatar
  • metatable Avatar
Ad