Computer Science, asked by dasdebika, 8 months ago

write a javascript code to display the message 'Eligible for voting'in a message box, if the following conditions are true:
1)The age should be >=18.
2)The nationality should be Indian.

Answers

Answered by mamatasamaljaj
0

Answer:

=>18

Explanation:

is c id ijznx kxndjdbdjd jd d dj d kn d

Answered by June021
2

Answer:

const vote=(age,ind)=>{

if(age>=18 && ind==='Indian'){

console.log('Eligible');

return;

}

console.log(age,ind);

};

vote({age=21,ind='Indian'});

Explanation:

Please check the above code I just typed and didn't execute, I hope it works.

Rate accordingly.

Similar questions