Declare a variable using var math


#1

https://www.codecademy.com/en/courses/react-101/lessons/react-jsx-advanced/exercises/jsx-pi-20-digits?action=lesson_resume

Declare a variable using var math.

It should work, but it throws an error. Im on the first task.

var React = require('react');
var ReactDOM = require('react-dom');

var pi = (
  <div>
    <h1>
      PI, YALL!
    </h1>
    <p>
      {Math.PI.toFixed(20)}
    </p>
  </div>
);

ReactDOM.render(
	pi,
	document.getElementById('app')
);

var math = <h1>2 + 3 = 2 + 3</h1>;

#2

Oh, i missed the line where it says "1. open "app.js". Now it works.


#3