Challenge: Extract Initials
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.
Lösung
Danke für Ihr Feedback!
single
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen
Can you explain this in simpler terms?
What are the main benefits or drawbacks?
Can you give me a real-world example?
Großartig!
Completion Rate verbessert auf 4.76
Challenge: Extract Initials
Swipe um das Menü anzuzeigen
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.
Lösung
Danke für Ihr Feedback!
single