I would like to know if we can create a constant variable inside an if statement. So the variable starts to exist from that time in the program. For example,
if (true) //this statement happens ONLY ONES
{
const variable = x;
}
Thank you in advance!
Aucun commentaire:
Enregistrer un commentaire