Hi Abhinav Dhasmana,
This is great article. I would like to know how we handle the situation where each and every if condition is different. For example:
if (a === 'hello') {
// do hello
} if (a.includes('hi') || a.includes('world')) {
// do hi
} else {
// do others
}
If you see here, the 2nd if block has a different condition. I’m not sure how to handle this.