Answers for "if statemnt shorthand js without else"

0

if statemnt shorthand js without else

//else if statement shorthand
y = (x === 2) ? 1 : (x === 3) ? 2 : (x === 4) ? 7 : 1000;
Posted by: Guest on May-25-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language