I am going through the heads first js book and encountered a problem.
On the Console it comes out as 7 still when it should be 8? This is in the book so I'm guessing I'm just missing something basic here.
var age = 7;
function addOne(x) {
x = x + 1;
}
addOne(age);
console.log(age);