Value
A value is data and may be the result of evaluating an expression or the contents of a variable.
Related concepts: ValueEvaluationVariable
Closest Wikipedia entry: Value (computer science)
Misconceptions about Value25 documented Misconceptions
Check YourselfEqualityOperatorComparesObjectsValues — Java
o==p compares the objects referred to by variables o and pEqualsComparesReferences — Java
o.equals(p) compares the references stored in the variables o and pExpressionsDynamicallyTyped — Java
One has to evaluate an expression to determine its typeLocalVariablesAutoInitialized — Java
Local variables are automatically initializedMultiValueVariable — Java
A variable can contain more than one valueMustInitializeFieldInConstructor — Java
Constructors must assign values to all fieldsNoCastIfSameSize — Java
If a variable is at least as big (bit-width) as a value, then no cast is needed to a assign the value to the variableNullIsObject — Java
null is an objectPrimitiveVariablesDynamicallyTyped — Java
The type of a primitive variable depends on its valueUseOfSelfTypeImpliesRecursiveType — Java
If a class has a method that has a local variable, parameter, or return value with the class as its type, the class is a recursive typeVoidMethodReturnsValue — Java
A method with void return type can return a valueCallbackParametersInCaller — JavaScript
Parameters of a callback function may be written as parameters of the caller functionEqualityOperatorComparesObjectsValues — JavaScript
The equality operator compares two objects' valuesEqualityOperatorComparesOnlyTypes — JavaScript
The equality operator '==' compares only the types of the operandsFunctionAsValueWithParentheses — JavaScript
To use a function as a value, one needs to have parentheses after its nameNoReturnValue — JavaScript
Functions without return statements return no value at allNullAndUndefinedAreTheSame — JavaScript
The values null and undefined are the sameNullIsObject — JavaScript
null is an objectTypeofNullIsNull — JavaScript
The value null is of type 'null'AssignmentCopiesObject — Python
Assignment copies the objectMultipleValuesReturn — Python
Functions can return multiple valuesVariablesHoldExpressions — Python
= stores an expression: it stores a reference to the expression in a variableVariablesHoldObjects — Python
A variable contains a whole objectEqualityOperatorComparesListIdentities — Scratch
(list a) = (list b) compares the identities of list a and list bEqualityOperatorComparesOnlyTypes — Scratch
() = () compares only the types of its operands