All Tracks/lab title case converter/
Đang tải...
Hướng dẫn thử thách
1 / 1

Build a Title Case Converter

In this lab you will create a function that converts a string to title case. Title case means that the first letter of each word is capitalized and the rest of the word is in lower case. `"Web Development Is Awesome"` is an example of a title cased string. **Objective**: Fulfill the user stories below and get all the tests to pass to complete the lab. **User Stories:** 1. You should have a `titleCase` function that takes a string as an argument. 1. The `titleCase` function should return a string with the first letter of each word capitalized and the rest of the word in lower case. 1. `titleCase("I like to code")` should return `"I Like To Code"`. 1. `titleCase("javaScript is fun")` should return `"Javascript Is Fun"`.
Vượt qua bài kiểm tra hiện tại để mở khóa bài tiếp theo.
main.js
UTF-8 • Tab Size: 2Kiểm tra bài:⌘↵
Test Output
Thử thách này không có bài test tự động. Hãy quan sát kết quả trực tiếp ở khung Preview.