-1

So I have this assignment in my boot camp. It asked us to start building a news-app displaying the top stories. I followed directions and did the things it asked me to but the content is not displaying like it should. Here is the repository with my code in it.

https://github.com/NurdPlay/news-app

I was expecting the content to display.

  • 1
    Questions here should be much more specific than this. You should isolate which code is involved in the problem, post that code in your question (pasted into the question and formatted as code, not only available as a link). Then, describe exactly what result you get, what result you expect and what debugging steps you've taken and what you learned. Usually, that leads to a very specific question you want help with that is not just "why is this not displaying". Please enhance your question with this additional information so that is doesn't get downvoted and/or closed. – jfriend00 Aug 24 '23 at 00:43
  • 2
    Since you may be new here, you can also check out [How do I ask a good question](https://stackoverflow.com/help/how-to-ask) in the [help center](https://stackoverflow.com/help). This is key to getting a prompt, accurate answer and not having your question closed for not following the proper procedures here. – jfriend00 Aug 24 '23 at 00:45
  • 1
    Is your code in script.js meant to run in a browser or in nodejs? The fact that you're referencing `document.createElement()` makes it look like you're running this in a browser, but `const apiKey = process.env.NEWS_API_KEY;` is code for nodejs that will not run in a browser. – jfriend00 Aug 24 '23 at 00:53
  • Have you looked in the browser console to see if you have script errors? – jfriend00 Aug 24 '23 at 00:54
  • I would guess that your code is not running because the first line contains a script error. See the console in the browser for the error log. – jfriend00 Aug 24 '23 at 02:34
  • And, please don't post and then just disappear. This is not the kind of place where you post and come back the next day. Your question is likely to get downvoted or closed if people are asking you for clarification and you're not here. You should be able to check on your question within the following couple of hours after posting. – jfriend00 Aug 24 '23 at 06:13

0 Answers0