面试题答案一键面试let str = 'hello world'; let newStr = str.charAt(0).toUpperCase() + str.slice(1); console.log(newStr);