added snippet for console.log statement in javascript