I write a simple "if" statement in a ".ts" file of React app, but the "if" doesn't work, the code is as follow:
const a = `555`;
if (0<1)
{
const a = `333`;
}
In the end, however, the value of "a" is 555
!!!
Would you please guide me?
I write a simple "if" statement in a ".ts" file of React app, but the "if" doesn't work, the code is as follow:
const a = `555`;
if (0<1)
{
const a = `333`;
}
In the end, however, the value of "a" is 555
!!!
Would you please guide me?