mercredi 14 septembre 2016

Javascript one line If, only state true

In default 'if' one line statement are two block, for true, and false:

variable ? true block : false block;

How declare 'if' with one block?

I expect something like this:

variable ? true block;

Aucun commentaire:

Enregistrer un commentaire