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)

Authoritative Definition

Wikipedia does not necessarily offer the best fitting definition of a concept. The exact meaning we attribute to the concept of Value is based on principled authoritative sources such as:

Misconceptions about Value
26 documented Misconceptions

Check Yourself
Misconception
EqualityOperatorComparesObjectsValues — Java
o==p compares the objects referred to by variables o and p
Misconception
EqualsComparesReferences — Java
o.equals(p) compares the references stored in the variables o and p
Misconception
ExpressionsDynamicallyTyped — Java
One has to evaluate an expression to determine its type
Misconception
LocalVariablesAutoInitialized — Java
Local variables are automatically initialized
Misconception
MultiValueVariable — Java
A variable can contain more than one value
Misconception
MustInitializeFieldInConstructor — Java
Constructors must assign values to all fields
Misconception
NoCastIfSameSize — 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 variable
Misconception
NullIsObject — Java
null is an object
Misconception
PrimitiveIsObject — Java
Primitive values are heap objects
Misconception
PrimitiveVariablesDynamicallyTyped — Java
The type of a primitive variable depends on its value
Misconception
UseOfSelfTypeImpliesRecursiveType — 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 type
Misconception
VoidMethodReturnsValue — Java
A method with void return type can return a value
Misconception
CallbackParametersInCaller — JavaScript
Parameters of a callback function may be written as parameters of the caller function
Misconception
EqualityOperatorComparesObjectsValues — JavaScript
The equality operator compares two objects' values
Misconception
EqualityOperatorComparesOnlyTypes — JavaScript
The equality operator '==' compares only the types of the operands
Misconception
FunctionAsValueWithParentheses — JavaScript
To use a function as a value, one needs to have parentheses after its name
Misconception
NoReturnValue — JavaScript
Functions without return statements return no value at all
Misconception
NullAndUndefinedAreTheSame — JavaScript
The values null and undefined are the same
Misconception
NullIsObject — JavaScript
null is an object
Misconception
TypeofNullIsNull — JavaScript
The value null is of type 'null'
Misconception
AssignmentCopiesObject — Python
Assignment copies the object
Misconception
MultipleValuesReturn — Python
Functions can return multiple values
Misconception
VariablesHoldExpressions — Python
= stores an expression: it stores a reference to the expression in a variable
Misconception
VariablesHoldObjects — Python
A variable contains a whole object
Misconception
EqualityOperatorComparesListIdentities — Scratch
(list a) = (list b) compares the identities of list a and list b
Misconception
EqualityOperatorComparesOnlyTypes — Scratch
() = () compares only the types of its operands