How to check if string value is present in variable name (identifier) For instance:
let stringVar = "hello";
let helloJohny = 45;
if (stringVar in helloJohny(name)) {
return true;
}
where "helloJohny(name)" simply means the identifier but not the value stored for this identifier.
Or to set the identifier on the basis of a string value? For instance:
let stringVar1 = "pretty";
let stringVar2 = "horse";
let (stringVar1 + stringVar2) = 45;
where: (stringVar1 + stringVar2) simply means the identifier built by the two string values, in this case - prettyhorse, so the result in system has to be understood as
let prettyhorse = 45;
???