I don't know who to put it but in PHP, you can
<?php
$var0 = "abc";
$var1 = "var0";
echo $$var1;
?>
This will output: "abc"
Can Javascript or ES6 do something like this? (also if there is a name for this, I'd be happy to know too)
I don't know who to put it but in PHP, you can
<?php
$var0 = "abc";
$var1 = "var0";
echo $$var1;
?>
This will output: "abc"
Can Javascript or ES6 do something like this? (also if there is a name for this, I'd be happy to know too)