Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Well:

    val = condition() ? 20 : 10;
    return val;


Did you invert the logic of the parent post on purpose?


Or even:

    return condition() ? 10 : 20;




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: