From 879b0337df7afbf5f4aebcc996875cbc969b72db Mon Sep 17 00:00:00 2001 From: Kashaiahyah85 Date: Wed, 30 Oct 2019 11:05:53 -0700 Subject: [PATCH] use === to compare when 0/1 --- js/calendar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/calendar.js b/js/calendar.js index 14dfc5452..bb37e8624 100644 --- a/js/calendar.js +++ b/js/calendar.js @@ -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 {