- 7

A shorter option for an "else if" statement is :

26th Dec 2021, 5:25 AM
Ramesh V
7 Réponses
+ 3
elif
7th Mar 2023, 12:58 PM
sahith p
sahith p - avatar
+ 1
Use Ternary operator E.g 1 < 2 ? console.log("yes") : console.log("no");
26th Dec 2021, 10:29 AM
Emms
Emms - avatar
+ 1
elif 1000%
22nd Oct 2022, 6:54 PM
Syed Arsh Farooqui
Syed Arsh Farooqui - avatar
- 1
use switch...case instead
26th Dec 2021, 8:34 AM
Unverified Account
- 4
A shorter option for an "else if" statement is :
26th Dec 2021, 5:26 AM
Ramesh V