Added the console.log for the ternary.