Created
April 10, 2013 02:06
-
-
Save renzocastro/5351166 to your computer and use it in GitHub Desktop.
JavaScript: Ejercicios usando funciones
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Clase sobre Funciones | |
// gist.github.com/otakurzo/5350996 | |
/* Ejercicios: */ | |
// 1. | |
console.log( reverso('Area51') ); | |
// 15aerA | |
// 2. | |
console.log( reemplaza('Area51', '51') ); | |
// Area | |
// 3. | |
console.log( deletrea('Area51') ); | |
// A-r-e-a-5-1 | |
// 4. (No existe un traductor en JS, hacerlo manual). | |
console.log( traducir('something') ); // Algunas cosas | |
console.log( traducir('more') ); // mas | |
console.log( traducir('dresses') ); // vestido |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment