lundi 17 juin 2019

Is there a way to reference the condition of a conditional statement or loop?

Is it possible to directly reference the condition of, for instance, an if statement?

if (true) {
    // Reference to the condition of the if statement
}

Can this be done using JavaScript or jQuery?

Aucun commentaire:

Enregistrer un commentaire