normal if else to shortend online javascript code example Example: shorthand if statment in js isLoggedIn ? "Logout" : "Login";