Computer Science, asked by manusondkar729, 7 months ago

JavaScript has a built-in multiway decision statement known as …………….​

Answers

Answered by RheaKundra
5

Explanation:

switch statement is decision making statement. javascript has a built in multiway decision statement known as switch.

Answered by mahinderjeetkaur878
0

Switch Statement

  • The switch statement is a type of conditional statement in JavaScript that allows for multiway branching based on the value of an expression.
  • It is often used as an alternative to a series of if statements when multiple conditions need to be checked.
  • The switch statement works by evaluating the expression once and then comparing the resulting value to a list of case values.
  • If a match is found, the code block associated with that case is executed. If no match is found, an optional default case can be executed.
  • The switch statement is useful for improving code readability and reducing the amount of repetitive code that is needed when working with multiple conditional statements.
  • However, it should be used judiciously as it can be less flexible than a series of if statements in some cases.

To know more: -

https://brainly.in/question/37699280?referrer=searchResults

https://brainly.in/question/16069027?referrer=searchResults

#SPJ3

Similar questions