T
Tell us what’s happening: I don’t know what I’m doing wrong here. I keep on getting “cannot read properties of null while testing my function” Your code so far <!-- file: index.html --> /* file: styles.css */ /* file: script.js */ Your browser information: User Agent is: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/157.0.0.0 Mobile Safari/537.36 Challenge Information: Build a Customer Complaint Form - Build a Customer Complaint Form freecodecamp.org…
T
Un-nesting the loops does not automatically make the work faster, because you still visit the same combinations in most cases. The win comes when you change what you do inside the loop, for example by using a dictionary lookup instead of scanning a whole list for each item. That is the part of time complexity worth keeping in mind for a career change, not a memorized table. For the Python job question, a single Python course is a start, not a complete job profile. Finish it, then take the data…
T
Use AI as a reviewer for work you have already tried, not as the author of your first attempt. Try the problem yourself, even if the result is messy, and then ask AI to point out what is wrong and why, rather than asking it to rewrite the whole thing. That way you are still making the decisions a developer has to make, like choosing a data structure or tracing a bug, and AI is only checking them. The risk with a full AI draft is that it hides those decisions from you, and that gap shows up in…
T
Build a small project after each section, even if it is rough. Finishing the whole curriculum first leaves too long a gap between learning a concept and using it, and that gap is where most of the detail fades. A one page site after Forms and Tables is enough to start. Use a real topic you care about, add a form that collects something useful, and style it until it looks presentable. That gives you a portfolio piece and a concrete reason to revisit the material when it breaks. Keep the projects…
T
“ballerina” is not the same as “Ballerina”.
T
and you don’t have browser extensions? have you tried in a guest profile or private window?
T
You have a syntax error: Traceback (most recent call last): File "main.py", line 17, in <module> TypeError: string indices must be integers, not 'tuple' the issue is from this line tadpolesfrogdead: department = employee_code[0,3] syntax errors make all the tests fail (the step with a + between string and integer was set up in a special way to avoid this)
T
Tell us what’s happening: Describe your issue in detail here. the instructions told me to make a variable called employee_code, I made it, yet it still says “you need to have a variable called employee_code”. what is goin on??? Your code so far first_name = 'John' last_name = 'Doe' full_name = first_name + ' ' + last_name address = '123 Main Street' address += ', Apartment 4B' employee_age = 28 employee_info = full_name + ' is ' + str(employee_age) + ' years old' print(employee_info)…
T
For a small portfolio shop, I’d learn it in layers rather than add every feature at once. Start with one useCartStore containing items, addItem, removeItem, and setQuantity; keep the cart total derived from items instead of storing a second total that can drift. In components, select only the fields or actions needed, such as useCartStore(s => s.items), so unrelated store changes don’t rerender every consumer. First test add, remove, and quantity changes with a few products; then add…
T
eileendortega347: <a href="http://freecatphotoapp.com"></a> <!-- User Editable Region --> <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back". </main> <a href="http://freecatphotoapp.com"></a> <!-- User Editable Region --> <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back". </main> Have a look at the web address on the anchor tag reference - you have a…
T
Tell us what’s happening: I’m having trouble with the anchor element on step 10 and the closing tag. Your code so far <html> <body> <main> <h1>CatPhotoApp</h1> <h2>Cat Photos</h2> <!-- TODO: Add link to cat photos --> <p>Everyone loves cute cats online!</p> <!-- User Editable Region --> <a href="http://freecatphotoapp.com"></a> <!-- User Editable Region --> <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back". </main>…
T
Thank you for the helpful advice! I’ll definitely incorporate the persist and devtools middleware once I have the cart working.
T
Thank you for the helpful advice! I have started reading the official docs and am currently working on the tic tac toe tutorial on there. I’ll definitely keep the code tidy when I start working on my project.
T
I think you can use an AI builder and still learn, as long as you stay in charge of the app. Start with a very small version, maybe one screen where you add an entry and see a list. After each change the builder makes, open the code and try to explain it in a comment in your own words. If you can’t, ask the AI to explain that part or rebuild it yourself in a smaller way. Keep a short notes file of the concepts you meet, like state, forms and storage, and work through them in the freeCodeCamp…
T
Tell us what’s happening: Step 15 fails with the line const removePlant = plant => catalog.delete(plant);. The function I wrote works function removePlant(plant) { for (const [key, value] of catalog.entries()) { if (key.cultivar === plant) { return catalog.delete(key); break; } } } Your code so far const ballerina = { commonName: "Spanish lavender", scientificName: "Lavandula stoechas", cultivar: "Ballerina" }; const prettyPolly = { commonName: "Spanish lavender", scientificName: "Lavandula…
T
Cuéntanos qué está pasando: Estoy haciendo el taller de Crear cinco programas en bash y al llegar a la parte de poner todos los otros programas en five.sh, por mas que tengo todo igual a lo pedido, me devuelve el mensaje “Your script should have the suggested commands added correctly” Tu código hasta ahora: #!/bin/bash #Program to run my other four programs ./questionnaire.sh ./countdown.sh 3 ./bingo.sh ./fortune.sh Información de tu navegador: El agente de usuario es: Mozilla/5.0 (Windows NT…
T
Welcome, and good luck with the learning. One thing that helps a lot at the start is getting the setup right once, so it does not slow you down later. Install a current long term support version of Java and a free editor such as IntelliJ IDEA Community Edition, and learn to run a program from the editor and from the command line. Knowing both makes it easier to tell whether a problem is in your code or in the setup. Another useful habit is learning to read error messages and use the debugger…
T
The docs are a good start, and a few specific ideas helped me get comfortable with Zustand faster. First, learn selectors early. Reading the whole store in every component causes extra re-renders, so select only the piece each component needs, like the cart items in one place and the total in another. Second, try the persist middleware once your basic cart works. Saving the cart to local storage is a small step, and it teaches you how middleware fits around a store. Third, add the devtools…
T
Welcome to the forum @Golgorath, Think about how you could use slice() to check that the end of the string argument is equal to the ending argument. Happy coding
T
Tell us what’s happening: I am having an issue visualizing what to even do for question 5. Basically the way my code works is it checks to see if str contains str2 via the indexOf substring method. This works for the first couple, but when it gets to Connor and looking for n, it returns True. I’m not sure how to have it ignore the match because it’s in the middle of a string. I’m guessing it is something with looping through, but I can’t seem to figure out how without that returning true.…
T
You are further along than you think, because solving Codewars problems on your own shows the basics are in place. The gap you are feeling is mostly about planning and building end to end, and that only comes from doing full projects without leaning on AI for the first draft. I would pick one of your university projects and rebuild a small slice of it on your own, writing the design down first, like what the modules are and how data moves between them. Use AI afterwards to review your code and…
T
For Zustand, the official docs are actually a good starting point because the library itself is small and the core ideas fit on a few pages. I would read the main guide once, then build the cart for your e-commerce app with a single store before adding anything else. Try adding one feature at a time, like removing items, changing quantities and saving the cart, and read the docs again when something does not behave as expected. That cycle of reading a little and then building something real…
T
Java is a solid choice for self learning, especially if you are aiming at backend work later on. Start with the core language first, variables, loops, methods, classes and collections, and write small programs every day rather than only watching or reading. Once the basics feel comfortable, build a few small console projects like a to-do list, a simple banking app or a quiz game, since that is where the concepts really stick. After that, move on to object oriented design, file handling and a…
T
Yeah I agree and I think stuff also depends on buyer persona and the audience. This is something I learned while I was making a website for an entrepreneur who had an audience filled with C levels and executives and other entrepreneurs. I made quirky stuff I WOULD LIKE but I had to learn that it’s not about me LOL and that it also depends on what the audience would like edit: Also I was just posting about this a bit ago-- web design is cultural too. I think individualistic cultures LOVE quirky…
T
If you are concerned you won’t be able to fix it then you either hire a dev to fix it or you learn how to code tbh
T
Welcome to the forum @kwadwo_blay, The weekday() function will return the day of the week, where Monday = 0 and Sunday = 6. Happy coding
T
Welcome to the forum @Mosh_Sz, Please provide more information. What course? Can you post a screenshot?
T
undefined is not a string; it’s a primitive type like null. undefined - JavaScript | MDN
T
We have blurred this solution (with [spoiler][/spoiler] tags) so that users who have not completed this challenge can read the discussion in this thread without giving away the solution.