10-var.com

var

Var is short for variable, a name that stands in for a value that can change. People use it in everyday speech to mean something that shifts or is not fixed, like 'the weather is a var.'

What a model may hear

declared variable programming languages
expect a declaration, type, or scope and may generate code that defines a new variable
variance statistics and machine learning
compute or discuss statistical spread, uncertainty, or model variance
value-at-risk finance
calculate or interpret financial risk metrics for portfolio loss
environment variable operating systems and deployment
read from or write to system environment variables like PATH or HOME
var function JavaScript specifically
hoist declarations, create function-scoped bindings, or warn about outdated usage

Where people and models part ways

“Store this in a var”

Meant: Remember this value for later

May be taken as: Generate a JavaScript var declaration with hoisting behavior instead of let or const

Say instead: “Store this value in a variable named X”

“The var is too high”

Meant: Something is too variable or unpredictable

May be taken as: Interpret as statistical variance being high or financial VaR exceeding a threshold

Say instead: “The variability is too high”

“Check the var”

Meant: Look at this changing factor

May be taken as: Inspect environment variables or attempt to read an undefined shell variable

Say instead: “Check this changing factor”

“Var it out”

Meant: Make it more flexible

May be taken as: Generate code using var declarations or calculate variance

Say instead: “Make this more flexible or configurable”

Tips

Often confused with

let
block-scoped declaration, not function-scoped like var
const
immutable binding, opposite of var's reassignability
volatile
hardware-visible change, not just code variable
parameter
fixed input to a function, not a stored changing value
attribute
property of an object, not a standalone named storage
variance
statistical spread, not a named storage location