JavaScript Overhere !!!
function kebabToSnake(txt) {
if (txt.includes('-')) {
var a = txt.indexOf('-');
return txt.replaceAt(a, '_');
}
return txt;
}
You forgot to close if statement ')'
Also one line alternat...
Turkey


