Can somebody please help with this code? I am not understanding how to write this JS. It's for an exercise, so we're just console.log'ing in the code block. But I'm seriously stuck. Please help.
// In this exercise, you will be given a variable, it will be called: typeOfPizza
// You are also given another variable called: lovesPizza;
// Using an if/else statement assign lovesPizza to true if typeOfPizza is 'pepperoni', assign it to false if it is 'olives'
// Please write your answer in the line above.
one way you could do this is
Hope this helps! :)