https://medium.com/@nisharmultani7/if-if-else-and-nested-if-else-condition-in-javascript-f997de835c7c