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");
This is a personal YouTube Channel of Miracle Ngwube Onyedika and this YouTube channel is where I post Videos of my Tech practice as a beginner in the Tech world and not a Tutorial Channel.
But you can still learn a lot of HTML, CSS, and JavaScript as I constantly upload a video of my mini-projects here on My Channel.
Nesta página do site você pode assistir ao vídeo on-line JavaScript Tip: Shortcut to IF and ELSE IF Statement in JavaScript. duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Coding Miracle 18 Julho 2022, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 13 vezes e gostou 1 espectadores. Boa visualização!