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 6b55087 commit 28740ccCopy full SHA for 28740cc
README.md
@@ -789,9 +789,9 @@ The first thing to consider is consistent APIs.
789
**Bad:**
790
```javascript
791
function travelToTexas(vehicle) {
792
- if (obj instanceof Bicycle) {
+ if (vehicle instanceof Bicycle) {
793
vehicle.peddle(this.currentLocation, new Location('texas'));
794
- } else if (obj instanceof Car) {
+ } else if (vehicle instanceof Car) {
795
vehicle.drive(this.currentLocation, new Location('texas'));
796
}
797
0 commit comments