You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1-js/09-classes/02-class-inheritance/2-clock-class-extended/task.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -2,14 +2,14 @@ importance: 5
2
2
3
3
---
4
4
5
-
# Extended clock
5
+
# Reloj extendido
6
6
7
-
We've got a `Clock` class. As of now, it prints the time every second.
7
+
Tenemos una clase de 'Clock'. A partir de ahora, imprime la hora cada segundo.
8
8
9
9
10
10
[js src="source.view/clock.js"]
11
11
12
-
Create a new class`ExtendedClock`that inherits from`Clock`and adds the parameter`precision` -- the number of `ms` between "ticks". Should be`1000` (1 second) by default.
12
+
Crea una nueva clase`ExtendedClock`que herede de`Clock`y agrega el parámetro`precision`: este es el número de `milisegundos` entre "tics". Debe ser`1000` (1 segundo) por defecto.
13
13
14
-
-Your code should be in the file`extended-clock.js`
15
-
-Don't modify the original `clock.js`. Extend it.
14
+
-Tu código debe estar en el archivo`extended-clock.js`
15
+
-No modifiques el `clock.js` original. Extiéndelo.
0 commit comments