My new coworker sent me some code. He wants me to figure out where he was born. I believe there are some hints within the code, but I cannot figure it out. Here is the code block:
function sort(arr){
var len = arr.length;
for (var i = len-1; i>=0; i--){
for(var j = 1; j<=i; j++){
if(arr[j-1]>arr[j]){
var temp = arr[j-1];
arr[j-1] = arr[j];
arr[j] = temp;
}
}
}
return arr;
}
Evidently, the code doesn't run. Can you help me figure out where he's from?
JavaScript
? $\endgroup$ – タコス Aug 24 '18 at 18:01