+ 9
In the following code i m always getting 1 as a answer...!!! How to fix it??
Want to make an Periodic table i used the concept of if and else if as i used it in my Calculator but its not working here.... https://code.sololearn.com/WhCoHyNFeNQq/?ref=app
2 Respostas
+ 7
Working....thnx bro....
+ 1
Your conditional operator should look like this:
if (yo=="something1"||yo=="something2"){
alert("something3");
}
|| - is or operator in js