h1b-software-salaries
h1b-software-salaries copied to clipboard
jobTitle==="*" is not required in else condition ?
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";
}
}
}