Unexpected token '<' in my JS code...Where is it>
I'm learning ReactJS on Codecademy and decided to take what I've learned there and make my own program. Unfortunately, I've had nothing but trouble. First my imports didn't work, then I was missing some commas, and now it has come up with "Syntax error: unexpected token < Line 38. This is where my div block is, but I can't figure out what's wrong. Code is below or follow this link to the code playground: https://code.sololearn.com/W414f7sA0CIs/#html Thank you all so much in advance, I already have a feeling it's some stupid mistake. var React = require('react'); var Component = React.Component; var emojis = [ { title: "You're feeling super happy! Go You!", src: "https://socializzed.com/img/cms/tags/happy-emoji.gif" }, { title: "I think you're about to doze off. Go take a quick power nap.", src: "https://socializzed.com/img/cms/tags/sleeping-emoji.gif" }, { title: "Wow, something's got you worked up. Why don't you take a few deep breaths or go for a walk.", src: "https://socializzed.com/img/cms/tags/frustrated-emoji.gif" }, { title: "What's got you so upset? It'll all be better soon.", src: "https://socializzed.com/img/cms/tags/tear-emoji.gif" } ]; class Emoji extends React.Component { render () { var emoji = prompt("Please enter a number from 1 to 4", "number"); if(emoji = 1) { emoji = emojis[0]; } else if(emoji = 2) { emoji = emojis[1]; } else if(emoji = 3) { emoji = emojis[2]; } else { emoji = emojis[3]; } return( <div> <h1>{friend.title}</h1> <img src={friend.src} /> </div> ); }