Mapping print to console.log