You want the prefix to be the position in array +1, so.
function orderedArray(array) {
if (array != []) {
let num = 1;
let prefix = `${num}: `;
for (let i = 0; i < array.length; i++) {
let prefix = `${i+1}: `;
array[i] = prefix + array[i];
num++;
}
return array;
}
return array;
}