short hand if statement in javascript code example Example: shorthand if statment in js isLoggedIn ? "Logout" : "Login";