Challenge: Extract Initials
Tarefa
Swipe to start coding
Write a function that takes a full name as a string and returns the initials in the format "X.Y." where X and Y are the first letters of each word in the name, capitalized and separated by periods.
- Split the
fullNamestring into words. - Take the first character from each word, convert it to uppercase, and add a period after each letter.
- Return the constructed initials string.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 1. Capítulo 4
single
Pergunte à IA
Pergunte à IA
Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo
Incrível!
Completion taxa melhorada para 4.76
Challenge: Extract Initials
Deslize para mostrar o menu
Tarefa
Swipe to start coding
Write a function that takes a full name as a string and returns the initials in the format "X.Y." where X and Y are the first letters of each word in the name, capitalized and separated by periods.
- Split the
fullNamestring into words. - Take the first character from each word, convert it to uppercase, and add a period after each letter.
- Return the constructed initials string.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 1. Capítulo 4
single