From c1903ddf6ed6567eb642b04dd3e8ce29c3a58833 Mon Sep 17 00:00:00 2001 From: TripleYei <58819156+TripleYei@users.noreply.github.com> Date: Wed, 4 Oct 2023 17:12:19 +0200 Subject: [PATCH] Update 2023-1-13-retos-programacion.markdown --- _posts/2023-1-13-retos-programacion.markdown | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/_posts/2023-1-13-retos-programacion.markdown b/_posts/2023-1-13-retos-programacion.markdown index 2a9f42e..c8ad88b 100644 --- a/_posts/2023-1-13-retos-programacion.markdown +++ b/_posts/2023-1-13-retos-programacion.markdown @@ -613,3 +613,11 @@ function countVowels(str) { } ~~~~ +Get initials + +~~~~ +function getInitials(name) { + return name.match(/\b\w/g).join(".").toUpperCase() + +} +~~~~