I usually use with keys because until today I do not know what exactly the operation of if without keys is and if the else can also be without keys. Is there any variation of behavior between javascript and C #? And among other languages?
Some examples that would confuse me if they work or not:
Example 1:
if(true)
variavel = 55;
else
variavel = 100;
Example 2:
if(true)
variavel1 = 55;
variavel2 = 40;
else
variavel1 = 100;
variavel2 = 150;
Example 3
if (true)
variavel1 = 55;
else{
variavel1 = 100;
variavel2 = 200;
}