Is this possible? My purpose is to pass text variables and / or numbers with large sizes, therefore, if I pass a large value to the parameters in a function call, in order to make validations (validate messages, scores , etc. of great length) Is this value copied ?, that is, Would it be using twice the memory ?, Does JavaScript at this point do any String Interning or references for the primitive values internally?
For example, strings are immutable, therefore, wouldn't it be silly to pass a copy in the parameters, or if they are passed by reference?
In the case of numbers, likewise, if I only want to use (not manipulate) a number inside a function, is this number also passed as a copy or is it a reference internally?
So is this possible in JavaScript?
Hope you can help me understand c: