let names = ['john', 'smith', 'karl'], str = 'Mr '; names = names.map((e) => str+e); console.log(names)