Skrót, jeśli stwierdzenie w JS
isLoggedIn ? "Logout" : "Login";
Mushy Magpie
isLoggedIn ? "Logout" : "Login";
const answer = x > 10 ? "greater than 10" : "less than 10";
function()