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