Musterlösung Ternary-Operator
Aufgabenstellung auf ../../ternary-operator.html
const farbe = "grün"; let style; style = farbe === "grün" ? "color: green" : "color: red";
Aufgabenstellung auf ../../ternary-operator.html
const farbe = "grün"; let style; style = farbe === "grün" ? "color: green" : "color: red";