Created
August 21, 2019 15:53
-
-
Save parzibyte/d67af71ea614731b4fed6186a0f850eb to your computer and use it in GitHub Desktop.
This file contains 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
/** | |
* Extraer parte de una cadena con JavaScript | |
* | |
* @author parzibyte | |
* | |
* https://parzibyte.me/blog | |
*/ | |
let cadena = "parzibyte.me"; | |
let extraida = cadena.substring(0, 9); | |
console.log("Extraída: ", extraida); | |
/* | |
Salida: | |
Extraída: parzibyte | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment