Quizzma Latest Questions

Why do we use if/else statements in JavaScript?

Anonymous

Why do we use if/else statements in JavaScript?

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



Related Questions

Leave an answer

Leave an answer

1 Answer