function ver() { document.write("CPU: " + this.cpu + "
"); document.write("Velocidad: " + this.vel + " MHz
"); document.write("Memoria: " + this.mem + " Mb
"); document.write("Disco duro: " + this.dd + " Gb
"); } function Ordenador(cpu, vel, mem, dd) { this.cpu = cpu; this.vel = vel; this.mem = mem; this.dd = dd; this.ver = ver; } o1 = new Ordenador("Pentium", 200, 32, 3); o2 = new Ordenador("Pentium II", 500, 128, 15); o1.ver(); o2.ver();