Most of the function had to run by adding a parameter but in this case I just want to work like this:
let value = "test";
value.funcTest();
function funcTest(){
return "value replaced" + value;
}
instead of
let value = "test";
value = funcTest(value);
function funcTest(x){
return "value replaced" + x;
}
is there a way to pull this off?