Hello,
I am unable to pass the Build a Survey Form test. It says:
Blockquote
Inside the form element, I can select an option from a dropdown that has corresponding id=“dropdown”.’
Cannot read properties of null (reading ‘tagName’)
TypeError: Cannot read properties of null (reading ‘tagName’)
Inside the form element, I can select a field from one or more groups of radio buttons. Each group should be grouped using the name attribute. Each radio button must have a value attribute.
There should be at least 2 radio buttons : expected 0 to be at least 2
AssertionError: There should be at least 2 radio buttons : expected 0 to be at least 2
To be exact, I’d not say that I’ve passed. I have just rewritten the code, line by line replacing some of the content. Guys, can you tell me how it really is? Should I memorise all the commands? I can create a simple website with forms, buttons etc if there’s a code I can look at while coding. But I am helpless without any hand out.
No you shouldn’t. And you probably can’t. No one can. Devs rely on looking up information. It’s part of the job.
Let’s take this survey form for example.
Starting out you will have to look up at least one element (dropdown) because it wasn’t covered in the lessons. So you search for it and find out about it and its attributes.
A more advanced search, which comes with time, is something like html form element which will get you all the elements that are allowed in the form element.
There is devdocs.io which is a good resource/tool.
If I can offer a bit of advice I’d say to not look at the sample projects. They show one way the project can be done.
And make the project from scratch, with your own code, style and content. Don’t take code from the sample project.
The projects are not just another challenge. Each one is meant to be a significant step in your progress. Every project you do will require research, planning, trial and error, and strengthening your skills beyond what you gained from the incremental challenges.
The hardest part of coding is looking at a problem and coming up with a plan to solve that problem. Starting out by looking at someone else’s code completely bypasses that step.
It’s not easy. If it was, everyone would do it. But it can be learned.
If you have an issue or something you’re having a hard time solving then ask on the forum. While we won’t give a solution we will help to guide you to finding a solution.
Thank you so much. I really want to learn how to code and get job in IT.
But I am also full of doubts about myself. I am 28 right now, I’ve studied languages, mainly English and Chinese (I’m from Poland). Despite my education my biggest experience is in sales field lol. The moment I’ve read that I should not rewrite the code but try to comprehend it and look for other ways - I mean I get what you mean but I seriously don’t know how haha. It’s black magic for me. I wonder whether I should find some private mentor and pay him/her or get into some bootcamp but I am afraid I’m not good enough for it and the pace will be too fast.
On the other hand I’ve read success stories about people in their 50’s who found job in IT.
I am considering redoing all the tasks from the scratch (those 150+ lessons) and then get back to those tests. I was not very consistent in the beginning and some of them I’ve just passed to get through.