result var and console.log