"A reference in Java Script affectively means a variable data type whose value takes the form of an address. A variable in Java Script is a terms that is used for an item of data that is named by an identifier. Each of these variables has a type which it can be classified under, such as 'int' or 'Object' and a scope. Commonly, in Java, variable have to be one of two types: 'Primitive' type or 'reference' type, and cannot be both. This statement leads to major simplifications within the syntax involved in certain expressions that are relative to C++. This provides a vast amount of flexibility for programmers using Java Script, but can lead to errors that are undetectable when compiling, and are only shown to exist when the written program is actually running.
A reference variable in Java contains an address, or a reference to an address (similar to pointer variables in C++). Java does not, however, allow this address to be arbitrarily (randomly) edited or changed in any way. This goes for pointer variables in C++ as well. So, reference variables are similar to pointer variables in C++. They provide a method through which to access another variable or memory address that has a variable, and allow changes to the data within the afore-mentioned memory address. A reference variable provides direct access to this memory address.
"
A reference variable in Java contains an address, or a reference to an address (similar to pointer variables in C++). Java does not, however, allow this address to be arbitrarily (randomly) edited or changed in any way. This goes for pointer variables in C++ as well. So, reference variables are similar to pointer variables in C++. They provide a method through which to access another variable or memory address that has a variable, and allow changes to the data within the afore-mentioned memory address. A reference variable provides direct access to this memory address.
"