Build a Cargo Manifest Validator - Build a Cargo Manifest Validator

Tell us what’s happening:

How to understand what I am reading to find the correct content online that is not AI?

So here is my issue, I read the question and I do not understand what it is asking of me, so I take that question and put it into google, I get an automatic response that is AI and it can see it is FreeCodeCamp then it just gives me the answer.

I know I can look at that code, type it out myself, and study the code to try and understand its logic but I feel it does not make my brain work hard enough.

The question:
So here is my question, how should I approach learning JS when I am asked a question in a hands on lab but do not understand what it is asking of me? I guess my issue is how do I take what it is saying and turn it into a research question like for JS on MDN, J3Schools, etc.?

I just want to really understand these concepts and I feel the prior lessons leading up to these labs are not preparing students to be able to grasp the labs. I get they are supposed to have you learn through trial and error but I feel so lost and then AI just gives the answer when trying to do research online, so how do I translate my confusion and question into a tangible reading strategy?

Your code so far

const normalizeUnits = (manifest) => {
  const normalizeUnitsCopy = {...manifest};
  if (normalizeUnitsCopy.unit === 'lb') {
    normalizeUnitsCopy.weight = normalizeUnitsCopy.weight * 0.45;
    normalizeUnitsCopy.unit = "kg";
  }
  return normalizeUnitsCopy;
}

PS: This code was figured out thanks to reading the AI response and trying to understand it against the question.

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0.0 Safari/537.36

Challenge Information:

Build a Cargo Manifest Validator - Build a Cargo Manifest Validator

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/lab-cargo-manifest-validator/69a56b5069ca99f7317e6e19.md at main · freeCodeCamp/freeCodeCamp · GitHub

Welcome back to the forum @firehaven

Asking AI to help you learn to code is not a good idea. It can give you misleading information and without foundational knowledge you may not recognise when it is happening.

Also, the difficultly you experience is the brain making synaptic connections in your brain. This is how learning and understanding occur. Taking shortcuts at this time you’ll forget what you’ve learnt as you won’t have given yourself time for the material to settle in and later on you’ll find the lesson much harder as they are based on learning previous lessons.

If you don’t understand a requirement for a lab you ask your question on the forum, that’s why it’s here.

Happy coding

It is not that I am asking AI, but that AI is even embedded into google return searches at this point which is so frustrating.

I just cannot figureout how to structure a task in the lab into a question for google, to then find similiar examples or the write code syntax I should try and use to solve the problem.

I feel its I am totally in the dark or AI gives you the whole thing and there is nothing in between.

Try writing down in words what you want to do.

There is a process of breaking down tasks into smaller subtasks. Some people write pseudo code when they cannot get into any more detail, which is then used to write actual code.

Begin by understanding the problem or issue, then create tests that will check what you expect to happen (the labs and workshops already create these tests).

Instead of searching on Google, take a look your notes, or skim read the review pages of the lessons.

Part of learning to code is learning to ask questions. At the beginning you won’t know much, or how to properly structure the problem or question. You are not expected to. But like a muscle, the more you exercise it, it will being to develop, it will take time.

Happy coding