0
What is the syntax of if statement if we use 2 conditions
4 Answers
0
which language?
0
java script
0
you can use:
&&(AND) or
||(OR)
Example:
if (age > 18 && status === 'single') {
console.log('You may enter');
}
if (age > 18 || status === 'single') {
console.log('Ok');
}
0
thankx