JavaScript : Strings

 meteorJS

Funciones y métodos para el tratamiento de strings en JavaScript. Contestar las preguntas teniendo en cuenta el siguiente código:var texto = "EXAMEN DE JAVASCRIPT";

1. texto.length

2. texto[3]

3. texto.indexOf("JAVASCRIPT")

4. texto.substring(7,9)

5. texto.substr(7,2)

6. texto.toLowerCase()

7. La expresión texto.split(" ") devuelve un arreglo con los siguientes valores: ["EXAMEN", "DE", "JAVASCRIPT"]

8. texto.charAt(0)