I’m working on this right now and I’m having trouble with jQuery. I’m a bit stumped as to why the if statement on line 10 isn’t working. When I console log the comparison, it comes up as NaN, which makes sense. However, when I make the variable === NaN statement, none of the code works. I thought it was the selector at first, but I tested it below and that works fine.
Side note, I also can’t figure out why my Buy button wont center.