Replace internal text with external in a function

I’m starting to play / understand how functions work and I’m looking for a way of having the part where it says “SOME TEXT HERE” replaced by something else when I call the fuction…

Imagine I have some eternal text… and I want that to be placed in that part…
How can I do that?!

Any help?!

myfunction(“SOME TEXT HERE”,mytarget);