Read the short tutorials in the following:


Read JS Booleans, JS Comparisons, JS Conditions, JS Switch

https://www.w3schools.com/js/js_booleans.asp