2018-10-12 15:37:13 -04:00
|
|
|
---
|
|
|
|
title: Use the JavaScript Console to Check the Value of a Variable
|
|
|
|
---
|
|
|
|
## Use the JavaScript Console to Check the Value of a Variable
|
|
|
|
|
2019-03-08 18:03:18 -03:00
|
|
|
### Solution
|
2018-10-12 15:37:13 -04:00
|
|
|
|
2019-03-08 18:03:18 -03:00
|
|
|
```js
|
|
|
|
let a = 5;
|
|
|
|
let b = 1;
|
|
|
|
a++;
|
|
|
|
// Add your code below this line
|
2018-10-12 15:37:13 -04:00
|
|
|
|
2019-03-08 18:03:18 -03:00
|
|
|
let sumAB = a + b;
|
|
|
|
console.log(sumAB);
|
|
|
|
|
|
|
|
console.log(a);
|
|
|
|
```
|