Code Monkey home page Code Monkey logo

Comments (3)

jdwilkin4 avatar jdwilkin4 commented on May 17, 2024 1

I would suggest deleting the information from the HTML page (have an empty #player-cards div), and call the setPlayerCards function after it's definition (as in the code below (copied the relevant part))

Yeah, this would involve add on extra step, and removing the HTML from the seed code which wouldn't be that much to change.

I would be more on board with this change then fetching the data from elsewhere.

But let's hear from the rest of the team to see what they think.

from freecodecamp.

jdwilkin4 avatar jdwilkin4 commented on May 17, 2024

Ideally we'd have the hardcoded information outside of the code in an external file or server, but that's not been taught yet at this stage

Yeah, I don't think we should update the project to move the data elsewhere only to have campers use fetch to access that data.

Fetch isn't taught until the last two projects. I think it would be best to leave it as is.

from freecodecamp.

bwyoungy avatar bwyoungy commented on May 17, 2024

Ideally we'd have the hardcoded information outside of the code in an external file or server, but that's not been taught yet at this stage

Yeah, I don't think we should update the project to move the data elsewhere only to have campers use fetch to access that data.

Fetch isn't taught until the last two projects. I think it would be best to leave it as is.

I agree :)
Was mentioning it as a general point. I of course think it's for a later point of the course to work in this way

from freecodecamp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.