JavaScript if else and else if

In JavaScript, we use various conditional statements to check some mathematical conditions to proving processing logic for any system.

Code :