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

Implement a Spinal Case Converter

Spinal case is a string format where all words are in lowercase and separated by hyphens. `"this-is-spinal-tap"` is an example of a string in spinal case. In this lab, you will create a function that converts a given string to spinal case. **Objective**: Fulfill the user stories below and get all the tests to pass to complete the lab. **User Stories:** 1. You should create a function named `spinalCase`. 2. The `spinalCase` function should take a single argument, a string. 3. The `spinalCase` function should return the string in spinal case format. For example, if the argument is `ProductLanding page`, the function should return `product-landing-page`.
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.