The primitive types (number, string, etc.) are passed by value, but objects are unknown, because they can be both passed-by-value (in case we consider that a variable holding an object is in fact a reference to the object) and passed-by-reference (when we consider that the variable to the object holds the object itself).
(基本类型(数字,字符串等)按值传递,但对象是未知的,因为它们都可以按值传递(如果我们认为保存对象的变量实际上是对对象的引用) )和按引用传递(当我们认为对象的变量包含对象本身时)。)
Although it doesn't really matter at the end, I want to know what is the correct way to present the arguments passing conventions.
(尽管最后并没有什么大不了,但我想知道呈现通过惯例的参数的正确方法是什么。)
Is there an excerpt from JavaScript specification, which defines what should be the semantics regarding this? (是否有JavaScript规范的摘录,其中定义了与此相关的语义?)
ask by Danail Nachev translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…