Javascript – Why my method not returning the string with char case toggled
This is my method, it was returning the same string as the input. for ex: toggleEveryCharCases('character') => 'character' Please answer me guys... export function toggleEveryCharCases(str: string): string { const strArr = str.split(''); for (let i = 0; i < strArr.length;…