I want to get variables before a dot like this:
"hello".myFunction();
I want to get "hello". I tried using this code and I thought that this is obviously not gonna work.
function myFunction(){
return value;
}
But it doesn't work. I always getting this error.
TypeError: "hello world".myFunction is not a function. (In '"hello world".myFunction()', '"hello world".myFunction' is undefined)