Top Banner
GUÍA DE LABORATORIO SEMANA 07 EJERCICIOS JAVASCRIPT
12

SESION 07 - laboratorio

Nov 12, 2014

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: SESION 07 - laboratorio

GUÍA DE LABORATORIO

SEMANA 07

EJERCICIOS JAVASCRIPT

Page 2: SESION 07 - laboratorio

function Persona(nombre) {

this.nombre = nombre;

this.color_pelo = 'negro';

this.peso = 75;

this.altura = 165;

this.sexo = 'varón';

this.edad= 26;

}

Para definir un objeto de esta clase, sólo

tendríamos que hacer esto:

var hombre = new Persona('Pepe');

Page 3: SESION 07 - laboratorio

01. Implementación completa:

Page 4: SESION 07 - laboratorio

EJERCICIO 02

Page 5: SESION 07 - laboratorio

SOLUCIÓN 01

Page 6: SESION 07 - laboratorio

EJERCICIO 03

Page 7: SESION 07 - laboratorio

…EJERCICIO 03

Page 8: SESION 07 - laboratorio

…EJERCICIO 03

Page 9: SESION 07 - laboratorio

EJERCICIO 04

Page 12: SESION 07 - laboratorio

06. Haga una página que genere

un conteo de 1 a 300 y corte la línea cada 10 números. Los múltiplos de

4 los muestre con tamaño +4 y

color verde. Y los múltiplos de 9 salgan en tamaño -2 y en color rojo.

Todo debe usar fuente arial.