CodeWars || Convert PascalCase string into snake case || JavaScript || Code Challenge

preview_player
Показать описание
Complete the function/method so that it takes a CamelCase string and returns the string in snake_case notation. Lowercase characters can be numbers. If the method gets a number as input, it should return a string.
"TestController" : "test_controller"
"MoviesAndBooks" : "movies_and_books"
"App7Test" : "app7_test"
1 : "1"
Рекомендации по теме
visit shbcf.ru