Skip to content

Commit

Permalink
use === to compare when 0/1
Browse files Browse the repository at this point in the history
  • Loading branch information
NetizenAbel authored and thamara committed Oct 31, 2019
1 parent 3d4f11d commit 879b033
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ class Calendar {
* Display previous month.
*/
prevMonth() {
if (this.month == 0) {
if (this.month === 0) {
this.month = 11;
this.year -= 1;
} else {
Expand Down

0 comments on commit 879b033

Please sign in to comment.