console.log and else statement created