[Solved] How to use CONST when there are multiple conditions


 const result = [x,y,x][input - 1];

It’s an array that’s accessed by index.

2

solved How to use CONST when there are multiple conditions