filmov
tv
JavaScript Shortcut for If and Else if Statement.

Показать описание
The easiest way to write an if and else if statement in JavaScript, below is the shortcut code displayed in the video:
const gender = prompt ("enter gender");
gender == "female" ? alert ("Hey girl") : alert ("Hey boy");
Check out the full video on my channel,
const gender = prompt ("enter gender");
gender == "female" ? alert ("Hey girl") : alert ("Hey boy");
Check out the full video on my channel,