nested if else into teranry condition js code example
Example: nested if javascript
if(a == 'value'){
doSomething();
if(b == 'another value'){
doAnotherThing();
}
}
if(a == 'value'){
doSomething();
if(b == 'another value'){
doAnotherThing();
}
}