Add Inline Styles in React- styles object

Add Inline Styles in React- styles object
0

#1

Tell us what’s happening:
How can i pass the test. What is wrong with my code. thank you.

Your code so far



var styles = {color: "purple", fontSize: 40 border:"2px solid purple"}

// change code above this line
class Colorful extends React.Component {
  render() {
    // change code below this line
    return (
      <div style={styles}>Style Me!</div>
    );
    // change code above this line
  }
};

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/front-end-libraries/react/add-inline-styles-in-react


#2
var styles = {color: "purple", fontSize: 40 border:"2px solid purple"}

You are missing a comma after “40” in your first line.