mirror of
https://github.com/luzhisheng/js_reverse.git
synced 2025-04-20 10:25:01 +08:00
11 lines
337 B
JavaScript
11 lines
337 B
JavaScript
function test(){
|
|
var input_str = [103, 101, 108, 108, 111, 32, 119, 111, 114, 108, 100];
|
|
input_str[0] = input_str[0] + 1;
|
|
output_str = [];
|
|
for(var index=0;index<input_str.length;index++){
|
|
output_str.push(String.fromCharCode(input_str[index]))
|
|
}
|
|
return output_str
|
|
}
|
|
var s = test();
|
|
console.log(s.join('')); |