Certification helo

Im having trouble with the tribute page, I keep getting errors that say “expected null to not equal null” and am having trouble as I slowly go along this, down below I will post my code as I update it and would like just some general tips on where I should be looking to fix issues, PLEASE NO ANSWERS! I would like to solve this as much as I can on my own but a nudge in the right direction would be amazing.

Edit: forgot to post the link, here it is: https://codepen.io/PreCookedBread/pen/gOaWJrN

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0.

Challenge: Build a Tribute Page

Link to the challenge:

Hey @PreCookedBread, I don’t know where you’re getting that error from, but by quickly looking at your code, you’re missing the part where you were supposed to include FCC bundle.js. On the Tribute Page project submission, the last paragraph tells you about that bundle.js:

You can build your project by forking this CodePen pen. Or you can use this CDN link to run the tests in any environment you like: https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js .

That bundle.js is a bunch of JavaScript code that will run against your project and check if you have implemented all the user stories. By the way, you have to add it to all your future project and only submit you project when you pass all the tests that bundle.js runs.

Thank you for that advice, is that a javascript line I have to add because I haven’t really worked on java that much.

Yes it is. So the first line of your HTML section, on CodePen, should be like this:

<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>

Don’t forget to add that line in all your future projects. Not only add it, but click on it, choose the project you are working on and run the tests as you progress with your implementation. You will see how many you’ve passed and how many you’ve failed. Once you pass all those tests, your project is ready to be submitted.

1 Like

It’s JavaScript, not Java.
When you fork the pen, that script will be in the HTML section. Since you inadvertently deleted it you can add that snippet, with the script tags to the HTML section in codepen as @krauss detailed to see the hamburger menu. It will not display if placed in the JS section.
An alternative is to;

  • click on the Settings button
  • click on JS
  • in one of the little boxes down towards the bottom paste in https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js (Note that this doesn’t have the script tags or the src attribute)

That all said and done, when I run the test script on your page I see 1/10 tests pass. Clicking the red button the first failure says;
My tribute page should have an element with corresponding id="main", which contains all other elements. expected null to not equal null
Look at your main element. Does it have an id? It doesn’t so it’s null and the test wasn’t expecting null.
As an aside, can you wrap everything in a div element with an id of main?

Thank you for the advice on where to post that, I had previously input my ID’s and DIVs but since they werent being registered I had thought I was using them incorrectly. Pasting that link helped to have it register thank you very much :slight_smile: