Как консоль.log переменная в JS

<script>
var a = 2;
console.log("The value of a is " + a);
</script>
namesaq