javascript if operator in filter statements code example Example: shorthand if statment in js isLoggedIn ? "Logout" : "Login";