Skip to content

Commit 6c39865

Browse files
#28-javascript
1 parent 965b777 commit 6c39865

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Roadmap/28 - SOLID LSP/javascript/caterinarodriguezdev.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,25 @@
1616

1717
class Ball {
1818
bounce() {
19-
console.log(`The ball bounce!!!`);
19+
console.log('La pelota rebota');
2020
}
2121
}
2222

2323
class BowlingBall extends Ball {
2424
bounce() {
25-
throw new Error(`Bowling ball can't bounce!!!`)
25+
throw new Error('La bola de bolos no puede rebotar')
2626
}
2727
}
2828

2929
class BallLSP {
3030
throw() {
31-
console.log(`Throw the ball`);
31+
console.log('Tira la bola');
3232
}
3333
}
3434

3535
class BowlingBallLSP extends Ball {
3636
throw() {
37-
console.log(`Throw the ball toward pins`);
37+
console.log('Tira la bola hacia los bolos');
3838
}
3939
}
4040

0 commit comments

Comments
 (0)