Синтаксис тройного оператора в JavaScript
( condition ) ? run this code : run this code instead
shahsawood
( condition ) ? run this code : run this code instead