touppercase2 0105. Greet Me Write a method that takes one argument as name and then greets that name, capitalized and ends with an exclamation point. Example: "riley" --> "Hello Riley!" "JACK" --> "Hello Jack!" Solution: var greet = function(name) { modifiedName = name.charAt(0).toUpperCase() + name.slice(1).toLowerCase() return `Hello ${modifiedName}!` }; var greet = function(name) { return 'Hello ' + name[0].toUpperCase(.. 2023. 1. 5. 1125. MakeUpperCase Write a function which converts the input string to uppercase. Solution: String makeUpperCase(String str) => str.toUpperCase(); 2022. 11. 25. 이전 1 다음