Getting an undefined Message. Please help

The code seems to work because i get the response. but i also have an undefined message at the bottom of the console. Any thoughts?

const freeShippingMessage = "Congrats! You are eligible for free shipping on this order.";

const freeShippingPromo = "Get free shipping on all orders of $75 dollars or more.";

function checkCartTotal(subTotal) {
if (subTotal < 75) {
  return console.log(freeShippingPromo);
} else {
  return console.log(freeShippingMessage)

1 Like

This is a very common question in this forum.
Have a look at this thread, for example:

1 Like