export function capitalizeFirstLetter(string) { return string.charAt(0).toUpperCase() + string.slice(1); }
it('capitalizes the first letter', () => { expect(capitalizeFirstLetter('john')).toBe('John') })
input
output