Any tips? I want to be able to come to the answers on my own, not use notes or reference books, I feel I’d be cheating. I am thinking I should have learned and remembered material from previous lessons, but I am coming to a blank. Researching outside of freeCodeCamp, I find there are often more then one way to complete a story. Example, with Card Counting, we can use switch statements, Object lookup, or if/else statements. I don’t want to look at notes, but how can I come to answers on my own?
Your code so far
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/154.0.0.0 Safari/537.36
Challenge Information:
Build a Card Counting Assistant - Build a Card Counting Assistant
first, write the steps the function should take in plain language, once you can take the given input, works exactly through the steps, and get the expected output (you can ask also here on the forum about evaluating your plain language steps), and the smaller the steps the better
then, once you have that, it’s called pseudo-code, you can look up the things you don’t remember how to do. For example, you don’t remember how to sum two numbers together? you can google “sum two numbers JS”, you would find something like Addition (+) - JavaScript | MDN and now you know what you can use to do this step.
This, looking up the syntax, or what method does the thing we need, this is part of daily life for developers, documentation is your best friend. For JS, the MDN is a good one.
It’s great that you want to be able to come up with the answers on your own, but even seasoned developers use references like MDN to check syntax, etc. You can also refer back to theory lectures to review concepts presented in the curriculum here.
What code have you written so far based on the user stories in the instructions? If you share it here, we will try to guide you.
Thank you for the tip! Using plain language first makes sense. I can see how it can allow someone to take a step back and determine what should be included in the function. You mention I can ask on the forum for my plain language steps to be evaluated? I didn’t know that. Can you provide an example of how I should format a plain language question on the format? I have an idea, but my way of thinking in plain language may not match with someone else.
Thank you. I didn’t realize we could share alternative code in the forums. I thought we had to try and match one specific code. I didn’t realize when there’s alternatives solutions we could share on the forum and get feedback. I will share in the future. Thanks.
no, I can’t provide a format, you can write how you want. You need to write in a way that is extremely clear tho, so that means that you in 3 months, or someone else must be able to also follow the steps and reach the same output