en.javascript.info/1-js/2-first-steps/12-ifelse/6-rewrite-if-else-question/solution.md
Ilya Kantor 04d0e3f425 up
2015-08-25 11:27:46 +03:00

138 B

var message = (login == 'Employee') ? 'Hello' :
  (login == 'Director') ? 'Greetings' :
  (login == '') ? 'No login' :
  '';