en.javascript.info/1-js/2-first-steps/12-ifelse/6-rewrite-if-else-question/solution.md
2015-09-25 13:56:55 +02:00

9 lines
138 B
Markdown

```js
let message = (login == 'Employee') ? 'Hello' :
(login == 'Director') ? 'Greetings' :
(login == '') ? 'No login' :
'';
```