h1b-software-salaries icon indicating copy to clipboard operation
h1b-software-salaries copied to clipboard

jobTitle==="*" is not required in else condition ?

Open harsha547 opened this issue 5 years ago • 0 comments

As a beginner in Javascript, I thought It would not required to write jobTitle==="*" in else condition ?

        if (jobTitle === '*') {
            if (year === '*') {
                title = "The average H1B in tech pays";
            }else{
                title = "The average tech H1B paid";
            }
        }else{
            if (jobTitle === '*') {
                title = "H1Bs in tech pay";
            }else{
                title = `Software ${jobTitle}s on an H1B`;

                if (year === '*') {
                    title += " make";
                }else{
                    title += " made";
                }
            }
        }

harsha547 avatar Feb 28 '19 18:02 harsha547