Using variables in JavaScript