---
title: Use the JavaScript Console to Check the Value of a Variable
---
## Use the JavaScript Console to Check the Value of a Variable

### Solution

```js
let a = 5;
let b = 1;
a++;
// Add your code below this line

let sumAB = a + b;
console.log(sumAB);

console.log(a);
```