We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 965b777 commit 6c39865Copy full SHA for 6c39865
Roadmap/28 - SOLID LSP/javascript/caterinarodriguezdev.js
@@ -16,25 +16,25 @@
16
17
class Ball {
18
bounce() {
19
- console.log(`The ball bounce!!!`);
+ console.log('La pelota rebota');
20
}
21
22
23
class BowlingBall extends Ball {
24
25
- throw new Error(`Bowling ball can't bounce!!!`)
+ throw new Error('La bola de bolos no puede rebotar')
26
27
28
29
class BallLSP {
30
throw() {
31
- console.log(`Throw the ball`);
+ console.log('Tira la bola');
32
33
34
35
class BowlingBallLSP extends Ball {
36
37
- console.log(`Throw the ball toward pins`);
+ console.log('Tira la bola hacia los bolos');
38
39
40
0 commit comments