xxxxxxxxxx
var bytes = [104, 101, 108, 108, 111]; // byte array
var str = ''; // string to hold the result
// loop through each element in the array and convert it to a character
for (var i = 0; i < bytes.length; i++) {
str += String.fromCharCode(bytes[i]);
}
// str now contains the string 'hello'