Convert strings to kebab-case by lowercasing and joining words with hyphens.
Constraints
Example
>>> to_kebab_case('Hello World')
'hello-world'
>>> to_kebab_case('foo_bar')
'foo-bar'
>>> to_kebab_case('camelCaseExample')
'camel-case-example'
>>> to_kebab_case('Hello, World!')
'hello-world'
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints