are nested ifs statement s okay in javascript code example
Example: nested if javascript
if(a == 'value'){
doSomething();
if(b == 'another value'){
doAnotherThing();
}
}
if(a == 'value'){
doSomething();
if(b == 'another value'){
doAnotherThing();
}
}