Topnumber,js file doesnt show and cannot complete the exercise


#1


Replace this line with your code.


#2

Same here. Even resetting the lesson does not help.


#3

Can you be more specific? For example:

  • TopNumber.js does not appear in the the sidebar/navigation pane.
  • TopNumber.js does appear in the sidebar but I cannot open it.
  • I can open TopNumber.js but the file contents are empty.

Have you tried clearing your cache? On Chrome and Firefox hold Ctrl (windows) / Cmd (mac) + Shift and press R
That will refresh and bypass cache, forcing the browser to re-retrieve data previously stored in cache. Try doing that in exercise 1 and clicking next and/or reset lesson after clearing cache.

Please share specifics about the problem and what didn't work so we can move towards a solution and help others who run into the same problem later.


#4

it dose not appear any place
check here please


#5

FYI: I am not a Codecademy employee. I'm just a user trying to help out. I do not know if my proposed solution will work.

First: try resetting the exercise by clicking 'Help' in the bottom right hand corner and choosing 'I want to restart this exercise'.

If that doesn't work, do the following:

  1. Hover over "files".
  2. Click the options icon.
  3. Click 'New File' option.
  4. Type 'TopNumber.js' (without quotes).
  5. Press enter/return.

Then reset the exercise again.

Let me know if that works. If it does not work, I can provide you with the initial code, which you can copy and paste.


#6

thank you for help ,

after creating file and reseting the exercise the same problem happen " file disappear again"


#7

Recreate it and paste this:

var React = require('react');
var ReactDOM = require('react-dom');
var yellow = 'rgb(255, 215, 18)';

var TopNumber = React.createClass({
  propTypes: {
    number: React.PropTypes.number,
    game: React.PropTypes.bool
  },

  getInitialState: function () {
    return { 'highest': 0 };
  },

  render: function () {
    return (
      <h1>
        Top Number: {this.props.number}
      </h1>
    );
  }
});

module.exports = TopNumber;

Hope it works out. Hake sure to submit a bug report if you haven't already.


#8

I'm replying to keep this thread alive, since Codecademy closes topics after 7 days with no replies. It'd be nice if an admin popped in and offered suggestions. This section of the React course is broken.


#9

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.