@ReinierB true , and honestly it can be shortened even more. I wrote it out longer for clarity. you literally could put a ternary operator like so
let lovesPizza; typeOfPizza === "pepperoni" ? lovesPizza = true : lovesPizza = false;
the condition before the "?" is your "if" statement condition, the code after the "?" applies if the condition is true, the code after the ":" applies if the condition is false.
There are even shorter ways, but they are complicated