I am trying to understand some javascript code but didn't understand what is causing this behavior.
My code is simple:
test ="s" + ("locomotion","maintenance","ave");
alert(test);
When I execute the above code, the string returned is "save" in alert box. What is the significance of the above code? Why does joining strings take the last string with "s"?
What is this called and how does java-script select "ave" to join with "s"?
Thanks.