added var and console.log

I added the variable and console.log codes