Why do we use if/else statements in JavaScript?
Options:
- A) To repeat something for a fixed number of times
- B) To either do something if a condition is true or do something else
- C) To break out of some block of code
- D) To repeat something while a condition is true