diff --git a/_posts/2023-1-13-retos-programacion.markdown b/_posts/2023-1-13-retos-programacion.markdown index c5f89b8..83e218b 100644 --- a/_posts/2023-1-13-retos-programacion.markdown +++ b/_posts/2023-1-13-retos-programacion.markdown @@ -757,3 +757,31 @@ function convert(c) { return (c * 9 / 5) + 32 } ~~~~ + +Convert to Binary + +~~~~ +function translate(n) { + return ( n >>> 0).toString(2) +} +~~~~ + +Swap Vowels + +~~~~ +function swapVowels(word) { + const letters = { + a:1, + e:2, + i:3, + o:4, + u:5 + + } + for(let i=0;i