JavaScript Series Part-5 (Conditionals and Functions)

To use conditionals, we use if, else if and else keywords. Statement inside if gets executed if that is true. If that happens the further…