how to call in return inside of if statement's variable outside of statement – React native
if (condition works){ let x = 20; let y= 30; console.log(x); console.log(y); } using react native: I don't want to declare the variable outside the if condition so I use the let inside the if statement. Now, I want to…