repository stringclasses 156 values | issue title stringlengths 1 1.01k ⌀ | labels stringclasses 8 values | body stringlengths 1 270k ⌀ |
|---|---|---|---|
freecodecampfreecodecamp | update code example for ternary operator in step 146 of rpg project | Bug | describe the issue we be still get a lot of people on the forum confuse on how to do step 146 of rpg project they be look to the current example and return string when the direction say to return the variable hit and the number 0 in order to clear up confusion we should chose a different example I know that this be update code example be very similar to what they need to do in the step but I think that be what they need at this stage update code example md here be an example of return a value use an if else statement and a refactore example use a ternary operator js if else statement if score 0 return score else return default score ternary operator score 0 score default score affect page your code see explanation above expect behavior see explanation above screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | update arrow syntax code example for step 11 of music player project | Bug | describe the issue we be get more form post on this step and I think it be because there be to much go on in this step we can clean this up by pick a small simple code example that well match what the camper have to do in this step update description md now you need a way to display the song in the ui user interface to do this you ll create a rendersong function use the arrow function syntax an arrow function be a short and more concise way to write function in javascript it s a function expression which be a function that s assign to a variable here be an of an arrow function with a single parameter and a single expression in the function body js const examplearrowfunction param return param if the function body consist of a single expression you can omit the curly brace and the return keyword this be call an implicit return js const examplearrowfunction param param use the arrow function syntax to create a rendersong function that take in array as its parameter affect page your code see explanation above expect behavior see explanation above screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | word in step 141 role play game js beta certification | Bug | describe the issue hi I think that the addition of a hyphen symbol here feature complete would improve the wording and make the whole text smoother affect page your code while your game be feature complete at this stage there be thing you can do to make it more fun and engage to get start you ll give monster a dynamic attack value inside your attack function change your health monster fight level line to health getmonsterattackvalue monster fight level this set health equal to health minus the return value of the getmonsterattackvalue function and pass the level of the monster as an argument expect behavior feature complete instead of the current feature complete screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | typo yous instead of you in hint text | Bug | describe the bug there s typo in two step in the hint text you s should be change to you this can be fix by first time code contributor to this repository here be the file that you should be look at to work on a fix list of file 1 2 please make sure you read our guideline for contribute we prioritize contributor follow the instruction in our guide join we in our chat room or the forum if you need help contribute our moderator will guide you through this sometimes we may get more than one pull request we typically accept the most quality contribution follow by the one that be make first happy contribute |
freecodecampfreecodecamp | miss explanation for newly present code step 63 js beta certification role play game | Bug | describe the issue hi I notice that the code within the update location appear all of a sudden without an explanation the last time that the update location function be present it be empty step 50 affect page your code function update location button1 innertext go to store button2 innertext go to cave button3 innertext fight dragon button1 onclick gostore button2 onclick gocave button3 onclick fightdragon text innertext you be in the town square you see a sign that say store expect behavior I think that the code within update location should have a brief explanation on why the code within be automatically add in this step screenshot fcc step63 system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | update test to allow for optional space around assignment operator in date formatter project | Bug | describe the issue it look like a few test in this project require space around the assignment operator affect page multiple your code see explanation above expect behavior see explanation above screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | update description in step 47 of music player to encourage camper to test code | Bug | describe the issue this project be miss key time to encourage the camper to test out their code this will help camper see the result of the code they just write update description md now it be time to test out the playnextsong function add a click event listener to the nextbutton element then pass in playnextsong as the second argument of your event listener this be the function the event listener will run test out your app by first clicking on the play button follow by the next button you should see that everything be work as expect affect page your code see explanation above expect behavior see explanation above screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | update description for step 40 of music player to have camper test event listener | Bug | describe the issue this project be miss key time to encourage the camper to test out their code in this step they be ask to add an event listener for the pause song button this would be a good time to have they test out their code after they have complete the step this will help camper see the result of the code they just write update description md now it be time to test out the pause button add a click event listener to the pausebutton element then pass in pausesong as the second argument of the event listener this be the function the event listener will run test out your app by first clicking on the play button follow by the pause button you should see that everything be work as expect affect page your code see explanation above expect behavior see explanation above screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | update description and test for step 34 of music player | Bug | describe the issue the step ask camper to check if userdata currentsong be null but I don t see why we need to just check for null here this should also be an acceptable answer js if userdata currentsong playsong userdata song 0 i d I don t see the need to only check for null we should just check if userdata currentsong be falsey that will allow for multiple correct answer instead of one update the description and test here to allow for multiple valid condition instead of just one affect page your code see explanation above expect behavior see explanation above screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | grammatical error in instruction odin project recipe page | Bug | describe the issue error you should have a with the the step as the list item affect page your code expect behavior it should be you should have a with the step as the list item screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | explain method chain for step 18 of music player | Bug | describe the issue this step come up a lot on the forum and I think it be because we have never really explain what method chain be or show an example let s update the description to include an example so they know what to do we should also explain why the join method be need here so they well understand what be go on update description md right now the songshtml be an array if you try to display this as be you would see the song separate by comma this be not the desire outcome because you want to display the song as a list to fix this you will need to join the array into a single string by use the join method the join method be use to concatenate all the element of an array into a single string it take an optional parameter call a separator which be use to separate each element of the array for example js const examplearr this be a sentence const sentence examplearray join separator take a space character console log sentence output this be a sentence chain the join method to your map method and pass in an empty string for the separator to chain multiple method together you can call the join method on the result of the map method for example js array map join affect page your code see explanation above expect behavior see explanation above screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | update description for step 16 of music player | Bug | describe the issue this should be a clear description and fix the inconsistency for the user of backtick md inside the button element create two more span element the first span element should have a class of playlist song artist in between the span tag add song artist the second span element should have a class of playlist song duration in between the span tag add song duration affect page your code see explanation above expect behavior see explanation above screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | attribute order shouldn t matter for step 14 of music player project | Bug | describe the issue right now we be force an order of the attribute for step 14 but order shouldn t matter here as long as the camper have valid syntax and the correct value they should pass update the description to remove any mention of an order update the test and hint to allow for the attribute to come in any order affect page your code see explanation above expect behavior see explanation above screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | update description for step 12 of music player | Bug | describe the issue we still have confusion on the forum about what the songshtml variable be about we can clean up the description to make it more clear about what be happen md when the song be display on the page it should show the title artist duration of each song and a delete button in the next few step you will learn how to add new html for each song use the map method this method will be explain in more detail in the next step start by use const to declare a variable name songshtml and assign it array map affect page your code see explanation above expect behavior see explanation above screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | update test and description for step 8 of music player | Bug | describe the issue I think the description and test could be clear here be the update description md your music player should keep track of the song the current song play and the time of the current song to do this you will need to create an object to store this information start by use the let keyword to declare a new variable call userdata assign an empty object to your userdata variable also the current test use a singular regex in this case there be other assert method that we could use here that also help make the test more granular here be my propose update the test md you should have a variable call userdata js assert isdefine userdata you should use the let keyword to create the userdata variable js assert match code let s userdata s you should assign an empty object to your userdata variable js assert deepequal userdata double check on your own to make sure the test work if you want to use other assert method that be fine too just make sure we be not use just one regex solution affect page your code see explanation above expect behavior see explanation above screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | add note to c exam about it only be available in english | Bug | describe the issue the c exam and any future exam we add be not translatable at the moment they be only available in english we should add a note somewhere that let camper know that it be only available in english not quite sure where to add it perhaps in place of the help we translate button on the exam or maybe somewhere else on the superblock or exam page or both I will look into add a way to translate the exam affect page foundational c sharp with microsoft certification exam expect behavior camper to be inform that the exam be only available in english and eventually to be able to take the exam in their native language |
freecodecampfreecodecamp | update direction for step 61 for music player | Bug | describe the issue we keep use the phrase implicit return here md use a ternary operator to check if currenttitle be truthy if so implicitly return currenttitle otherwise implicitly return an empty string assign this result to playingsong textcontent but all we be do be set the text content here js playingsong textcontent currenttitle currenttitle so this would be a well wording here be the revise direction md use a ternary operator to check if currenttitle evaluate to a truthy value if it do set playingsong textcontent to currenttitle otherwise set it to an empty string then below that use a ternary operator to check if currentartist be truthy if so set songartist textcontent to currentartist otherwise set it to empty string affect page your code see explanation above expect behavior see explanation above screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | unclear explanation of the charset attribute in learn html by build a cat photo app step 69 | Bug | describe the issue this particular lesson do not correctly explain the charset attribute it say tell the browser to parse the markup into multiple language by create a meta element as a child of the head element set its charset attribute to utf 8 which imply that the charset attribute can automatically translate the markup compare this with the explanation from learn basic css by build a cafe menu step 3 which say inside the head element nest a meta element with an attribute name charset set to the value utf 8 to tell the browser how to encode character for the page note that meta element be self close affect page your code see explanation above expect behavior see explanation above screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | script tag place in javascript course | Bug | describe the issue in the freecodecamp curriculum you teach to place the when I try do so while work on the certification program it didn t work while it do when I run the same code on my computer externally from the freecodecamp site I be wonder why it s like this and also if it should be fix affect page all javascript course program step to reproduce 1 go to a certification program in the javascript course 2 use in the tag 3 the script win t run after the html as it should due to defer expect behavior I d expect a script tag with defer to run after the html even if place in the head tag screenshot no response system device viviobook asus laptop os window 11 home browser mozilla firefox additional context no response |
freecodecampfreecodecamp | luhn algorithm step 31 too strict | Bug | step 31 require to write the sum of odd digit sum of odd digit and even digit sum of even digit but the test want the two variable in a specific order we should have a test that allow both total sum of even digit sum of odd digit and total sum of odd digit sum of even digit file |
freecodecampfreecodecamp | augment test for step 90 of calorie counter | Bug | describe the issue a camper on the forum be unable to pass with the follow code js function clearform const inputcontainer array from document queryselectorall input container for let container of inputcontainer container innerhtml the test be only check for const in the loop declaration that should be fix to allow for let or const affect page your code js function clearform const inputcontainer array from document queryselectorall input container for let container of inputcontainer container innerhtml expect behavior let or const declaration should be valid screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | confusing hint text in learn functional programming step 46 | Bug | describe the issue this challenge do not involve edit elemvalue at all yet it be discuss in the hint text affect page your code const evalformula x cell const idtotext i d cell find cell cell i d i d value const rangeregex a j 1 9 0 9 a j 1 9 0 9 gi const rangefromstre num1 num2 range parseint num1 parseint num2 const elemvalue num const inner character return idtotext character num return inner const addcharacter character1 expect behavior the text should be like your addcharacter function should return an arrow function which have a character2 parameter so it be clear what need edit screenshot picture of hint system device desktop os window 10 browser firefox version 122 0 1 additional context no response |
freecodecampfreecodecamp | code radio doesn t play music | Bug | describe the issue code radio currently not play I ve try switch browser and restart to make sure it wasn t user error play button will spin for approximately 1 min then just stop affect page step to reproduce 1 go to 2 click on play button or hit space bar 4 see error expect behavior once you hit the spacebar or press play music should begin display current song and artist info screenshot no response system device 21 macbook pro m1 os mac os sonoma browser safari and chrome version 14 3 additional context no response |
freecodecampfreecodecamp | learn functional programming by build a spreadsheet has2 not recognize as spreadsheet function | Bug | describe the issue the spreadsheet function has2 first define in step 97 as of feb 10 do not work in the spreadsheet page I think this be because the regex in the function applyfunction doesn t recognize it as a function the regex const functioncall a z 0 9 I I think the regex need to change to a z2 0 9 I or a z0 9 0 9 I affect page your code const functioncall a z 0 9 I expect behavior when a formula in the spreadsheet be has2 1 2 3 the cell update to true when formula be has2 4 5 6 the cell update to false screenshot no response system device laptop os macos 14 3 browser chrome version 120 additional context no response |
freecodecampfreecodecamp | update instruction for step 127 of rpg project | Bug | describe the issue the instruction read as follow in your defeatmonster function set gold equal to gold plus the monster s level time 6 7 you can get the monster s level with the level property here be an example of set num to num plus 5 8 num 5 8 use math floor to round the result down affect page your code na expect behavior in your defeatmonster function set gold equal to gold plus the monster s level time 6 7 you can get the monster s level with the level property don t forget that monster be a array and each array can be access by a number we use fight to access the index here be an example of set num to num plus 5 8 num 5 8 use math floor to round the result down screenshot no response system device laptop os macos browser chrome additional context no response |
freecodecampfreecodecamp | learn basic javascript by build a role play game step 86 function pass twice | Bug | describe the issue in the javascript algorithm and datum structure beta series course step 86 there be a bug in the location object name store button text buy 10 health 10 gold buy weapon 30 gold go to town square button function buyweapon buyweapon gotown text you enter the store in the button function buyweapon be repeat twice the first one should be buyhealth affect page step to reproduce 1 go to 2 click on go to store button 3 scroll down to 4 see error expect behavior click on the go to store button and buy health should update the health value but it s not happen because of the correct function be not in place screenshot no response system browser e g chrome safari additional context no response |
freecodecampfreecodecamp | the wrong answer be request html foundations question h the odin project freecodecamp remix beta | Bug | describe the issue hi the correct answer here be they focus on present information rather than program logic but to move forward with this certification they lack the ability to create webpage be the expect option affect page your code question why be html and css not typically classify as programming language they lack the ability to create webpage they focus on present information rather than program logic they be outdate technology expect behavior they focus on present information rather than programming logic should be the right answer to select screenshot fcc odin system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | typo which change mean in localstorage by build a todo app lesson of the new javascript course | Bug | describe the issue in step 30 we refactor the code a bit by split up code we already write into function one of the statement to move be an if statement which check the result of a findindex function on an array I forgot to mark the if statement in my cut paste job and get the following note when check the code you should move the if statement with the condition dataarrindex 1 into your addorupdatetask function unfortunately the condition in the note be completely wrong as the condition we want be to check if it s equal to 1 as that be the flag the findindex function return if it doesn t find a match if the return value be 1 that s the i d and we d not want to enter the if statement it s only the note which be wrong and if I enter if dataarrindex 1 taskdata unshift taskobj in the code then I still have the note when check the code and only the actual correct if statement of equal 1 let I continue but I m sure such a situation could be frustrating for a camper if they write what s in the note and stay stuck affect page your code const addorupdatetask const dataarrindex taskdata findindex item item i d currenttask i d const taskobj i d titleinput value tolowercase split join date now title titleinput value date dateinput value description descriptioninput value if dataarrindex 1 taskdata unshift taskobj expect behavior to not accept the code and display a note say the if condition should be dataarrindex 1 screenshot image system device viviobook asus laptop os window 11 home browser mozilla firefox additional context no response |
freecodecampfreecodecamp | the odin project html foundations question h wrong answer | Bug | describe the issue the answer be wrong for this page affect page your code n a expect behavior I expect the correct answer to be they focus on present information rather than program logic but the correct answer appear to be they lack the ability to create webpage screenshot system I think the system be irrelevant so I be skip this additional context no response |
freecodecampfreecodecamp | update direction for current step 120 of rpg project | Bug | describe the issue the instruction be not clear right now it say set monsterhealth to monsterhealth minus the power of the player s current weapon remember you have the currentweapon variable and the power property affect page edit this be actually step 120 in the main branch your code na expect behavior set monsterhealth to monsterhealth minus the power of the player s current weapon remember you have the currentweapon which be not initialize variable and the power property on weapon array screenshot no response system device laptop os macos browser chrome additional context I think it should be more detail about what and where be currentweapon power property and how to access it like in previous |
freecodecampfreecodecamp | update description for step 118 of rpg project | Bug | describe the issue the instruction isn t clear to use compound assignment e g now it say on a new line add the string you attack it with your to the text value replace with the player s current weapon additionally remember that this line of text start with a space so it will properly display affect page note this be actually step 118 in the main branch your code na expect behavior on a new line add compound assignment to the string you attack it with your to the text value replace with the player s current weapon additionally remember that this line of text start with a space so it will properly display screenshot no response system device laptop os macos browser chrome version 121 0 6167 139 additional context no response |
freecodecampfreecodecamp | outdate string english for developer 2nd chapter task 39 2023 not 2024 | Bug | describe the issue in the 2nd chapter task 39 it refer to 2023 as be the current year and 2024 as the next year last year refer to the year before the current one for example if it be 2023 now last year be 2022 this year refer to the current year 2023 in this example next year will be the year after the current one which would be 2024 in this case understand these expression help in place event correctly in time affect page your code expect behavior this information need to be code so that it automatically update each year for this year please update the whole text to last year refer to the year before the current one for example if it be 2024 now last year be 2023 this year refer to the current year 2024 in this example next year will be the year after the current one which would be 2025 in this case understand these expression help in place event correctly in time screenshot screenshot system all system current beta additional context this information about the year need to be code so that it automatically update each year |
freecodecampfreecodecamp | code duplicity in learn modern javascript method by build football team card lesson in javascript algorithm and datum structure course | Bug | describe the issue I notice there be quite a bit of code duplicity the raw information of the player be hardcode both on the index html page and in the script page in the player array I would suggest delete the information from the html page have an empty player card div and call the setplayercard function after it s definition as in the code below copy the relevant part affect page your code const setplayercards arr player playercard innerhtml arr map name position number iscaptain nickname name iscaptain captain position position number number nickname nickname null nickname n a join setplayercards playersdropdownlist addeventlistener change e expect behavior the behaviour will be the same but with hardcoding of the information only once ideally we d have the hardcode information outside of the code in an external file or server but that s not be teach yet at this stage screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | typo english for developer 2nd chapter task 24 sould not sound | Bug | describe the issue in the 2nd chapter task 24 it read sould instead of sound in the second sentence above the video clip affect page your code expect behavior text should read you can use object pronoun to replace noun in a sentence this avoid repetition and make the sentence sound more natural listen for the object pronoun bob use in this audio screenshot bildschirmfoto 2024 02 07 um 17 11 06 system all device current beta additional context no response |
freecodecampfreecodecamp | fix strict test for step 35 shopping cart project | Bug | describe the issue we have a camper on the forum unable to pass the test with this code js addtocartbtns foreach btn btn addeventlistener click event they be fail because of a semicolon at the end of the event listener the test should be fix to account for that affect page your code see explanation above expect behavior see explanation above screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | fix step 47 todo app test to allow for inequality and strict inequality operator | Bug | describe the issue we have a camper on the forum try to pass step 47 with this code js const forminputvaluesupdate titleinput value currenttask title dateinput value currenttask date descriptioninput value currenttask description the description do not specify that the answer have to use the strict inequality only the last hint do js const forminputvaluesupdate titleinput value currenttask title dateinput value currenttask date descriptioninput value currenttask description the test should be update to allow for both also the test expect a certain order the test shouldn t force a particular order all valid answer should be accept update this last hint text here js your forminputvaluesupdate variable should have the value titleinput value currenttask title dateinput value currenttask date descriptioninput value currenttask description it should be update to this so we don t force order or preference over inequality operator md your forminputvaluesupdate variable should check if titleinput value be not equal to currenttask title dateinput value be not equal to currenttask date or descriptioninput value be not equal to currenttask description and if there be a way to rewrite the test to use less regex and more of the other assert method that would be even well method assert affect page your code see example above expect behavior see example above screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | sync footer with news | Bug | describe the issue the font family for the trend guide and mobile app title in the footer should be lato san serif and the footer desc col in the footer should be align with the trending find the related selector for the footer desc col and add the follow style align self start also find the related selector to the footer title and add the follow style font family var font family san serif affect page expect screenshot |
freecodecampfreecodecamp | remove clear class style from calorie counter project | Bug | describe the issue hi I find a styling class that doesn t seem to be use in the html or javascript code clear background color var light pink color var dark red border color var dark red the original html only specify the i d clear but not the class clear clear I personally just add a new class to the button tag to solve the problem clear hope this help also thank you all very much for this certification course hope to contribute more in the future thank affect page your code clear expect behavior the clear button should have a light pink background color and dark red text color screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | fix spelling error for stat calculator project step 3 | Bug | describe the issue we have a spelling error for step 3 of the stat calculator project the word separate be spell wrong in the description update description with spelling error resolve md use the s g regex to split the value string by comma you can tweak it base on the number of space separate your value store the array in an array variable affect page your code see explanation above expect behavior see explanation above screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | add code example for step 31 of calorie counter project | Bug | describe the issue whenever we introduce a new concept we should have a short code example update description md description the e in a number input can also be an uppercase e regex have a flag for this however the I flag which stand for insensitive js hello I the follow regex would match hello hello hello and even hello because of the I flag this flag make your pattern case insensitive add the I flag to your regex pattern affect page your code see explanation above expect behavior see explanation above screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | test be to strict for step 44 of calorie counter project | Bug | describe the issue we have a camper on the forum unable to pass the test for step 44 of the calorie counter this be their code js const htmlstre entry entrynumber name they be fail because of the spacing before entry and after name we shouldn t be that strict about space here the test only pass with this exact structure and space js entry entrynumber name we should update the test to be more flexible affect page your code see explanation above expect behavior see explanation above screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | remove all project euler guide solution | Bug | describe the issue as request by project euler themselves the solution shouldn t be list in the source code and need to removed 1 100 101 200 201 300 301 400 401 480 affect page your code n a expect behavior the solution section should not be list on the file screenshot no response system device desktop os window 10 browser firefox version 122 0 1 additional context some of they actually don t have solution in the code and only have a blank line say they need a solution |
freecodecampfreecodecamp | update instruction for step 110 for rpg project | Bug | describe the issue the instruction be not clear it take time to know what it be say affect page your code na expect behavior the heading should read follow the same pattern as fightslime use that code in the fightbeast and fightdragon function remember that beast be at index 1 and dragon be at index 2 also remove the console log call from your fightdragon function screenshot system device laptop os mac browser chrome additional context no response |
freecodecampfreecodecamp | refactor sort song functionality for music player project | Bug | describe the bug in the program part of what we do be sort the song display alphabetically after delete all song we insert an option to reset the playlist but after the reset the song be not display alphabetically as you d expect the reset would show the same as the beginning of the program run |
freecodecampfreecodecamp | update description for step 22 of calorie counter project | Bug | describe the issue we still have a lot of confusion on how to do step 22 of the calorie counter we should refactor the code example to well match what be expect in the lesson and we should update the 3rd hint text to more explicitly show the right answer for that if statement because that be where people be get trip up update step 22 description md you will need to check if the array do not include the current character you can use a combination of the include method and the operator to do this the include method return true if the array contain the character and false if not the logical not operator will return the opposite of the value of the include method here be an example check if the current character be not in the vowel array if it be not that current character be push into the consonantarray js const inputstre hello world const chararray inputstre split const consonantarray for let I 0 I chararray length I if a e I o u include chararray I consonantarray push chararray I within your loop you need to check if the character in strarray at index I be not a or a space if it be not push it to the cleanstrarray revise 3rd hint text md your for loop should see if include strarray I js assert match code for s s let var s I s s 0 s s I s s strarray length s s I s s s s if s s s s 2 s s 3 s s s 4 s s include s strarray s s I s s s s affect page your code see explanation above expect behavior see explanation above screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | regex test be to strict for step 9 of todo project | Bug | describe the issue we have a camper on the forum unable to pass step 9 this be their code js discardbtn addeventlistener click confirmclosedialog close taskform classlist toggle hide the issue be their format not match what the regex test be expect here js assert match code discardbtn addeventlistener s click 1 s s s s s s confirmclosedialog close s s taskform classlist toggle s hide 2 s s s we should allow for any correct answer to pass and not be strict about format here because these be still beginner get the hang of it affect page your code see explanation above expect behavior see explanation above screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | fix hint text for step 14 of calorie counter project | Bug | describe the issue we be still get a lot of confusion on the forum for step 14 of the calorie counter here be the most common solution that camper be come up with js const caloriecounter document getelementbyid calorie counter js const caloriecounter document getelementbyid form I vote we leave the example code alone instead we should update the hint text currently the hint text say this md you should use document getelementbyid to get the calorie counter element and this md you should store the calorie counter element in a variable call caloriecounter that be lead to incorrect answer like this js const caloriecounter document getelementbyid calorie counter revise hint text I haven t alter any of the test because those be fine I just update the second and third hint text here md hint you should create a variable call caloriecounter js assert isdefine caloriecounter you should have document getelementbyid calorie counter js assert match code document getelementbyid s calorie counter 1 s g you should assign document getelementbyid calorie counter to your caloriecounter variable js assert equal caloriecounter document getelementbyid calorie counter affect page your code see explanation above expect behavior see explanation above screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | unclear instruction step 61 python password generator | Bug | describe the issue some camper seem overwhelmed with the step 61 of password generator here be some of the report issue on the forum affect page your code expect behavior simplify and break the instruction far more suggestion be welcome on how to improve further screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | unclear instruction platformer game step 78 | Bug | describe the issue follow task ask for inside that array add a boolean expression that check if the player s y position plus the player s height be less than or equal to the platform s y position read this line suggest indicate to I write an if statement inside of the array although that could be my understanding of the sentence affect page your code expect behavior my suggestion would be to update the sentence to the follow populate this array with a boolean expression that evaluate whether the sum of the player s y position and height be less than or equal to the platform s y position screenshot no response system device macbook pro os ventura 13 4 1 browser chrome version 121 0 additional context no response |
freecodecampfreecodecamp | step 65 of calorie counter project unclear instruction | Bug | describe the issue the instruction doesn t say that the user need to declare a es6 arrow function and not a regular function image affect page your code const calculatecalorie e expect behavior should accept both regular and es6 arrow function screenshot image system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | python cipher step 41 clarify empty space | Bug | describe the issue the instruction ask print the result of compare char with an empty space it s common for people to make the error of use an empty string instead of a space char char I think call it an empty space might be a bit unclear even though it do give the example I propose change the wording to a space character or just a space affect page your code na expect behavior na screenshot na system device na os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | fix description step 41 of cipher project | Bug | describe the bug the description say at the beginning of your loop body print the result of compare char with an empty space empty space seem to be incorrect and mislead to reproduce expect behavior each occurrence of an empty space should be change into a space in both the description and hint section additional context file to change |
freecodecampfreecodecamp | close curly brace and the closing parenthesis issue | Bug | describe the issue the solution require close curly brace and closing parenthesis to be on the same same line and I do not understand why please help in clarify why affect page your code const rendersong array const songshtml array map song join expect behavior this solution should pass but it be not screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 laptop window 10 firefox 122 additional context the solution require close curly brace and closing parenthesis to be on the same same line and I do not understand why |
freecodecampfreecodecamp | update the direction and hint text for step 117 for rpg game | Bug | describe the issue we have a lot of camper struggle with how to do step 117 of the rpg game on the forum there be still some confusion on how the monster array work and how to access information from it it would be good to update the direction and hint text to more explicitly show they what need to be do update step 117 direction md description now you will need to update the text for the current monster s name and health start by assign monster fight name to the innertext property of monstername then assign monsterhealth to the innertext property of monsterhealthtext update step 117 hint I didn t make any change to the test because those be fine here be the update to the hint text only for hint 2 and 4 md hint you should use dot notation to access the innertext property of monstername js assert match gofight tostre monstername innertext you should assign monster fight name to monstername innertext js assert match gofight tostre monstername innertext s s monster s s fight s s name you should use dot notation to access the innertext property of monsterhealthtext js assert match gofight tostre monsterhealthtext innertext you should assign monsterhealth to monsterhealthtext innertext js assert match gofight tostre monsterhealthtext innertext s s monsterhealth monsterhealthtext innertext s s monster s s fight s s health affect page your code see explanation above expect behavior see explanation above screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | update hint text for step 61 of calorie counter project | Bug | describe the issue we have this post on the forum the camper be try to pass step 61 with this code js function getcaloriesfrominput list let calorie 0 for let I 0 I list length I const currval cleaninputstring list I value const invalidinputmatch isinvalidinput currval if invalidinputmatch alert invalid input invalidinputmatch 0 value the hint text be tell they this md you should use template literal syntax to display the first value in the invalidinputmatch array after the invalid input text we should update the wording to make it more clear that they should get the first element of that invalidinputmatch array affect page your code see explanation above expect behavior see explanation above screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | dice game step 67 a lot less than require seem to pass | Bug | describe the issue normally I feel the test be to sensitive now this one be the complete opposite I haven t even do everything and maybe something wrong and I get a pass I feel like this isn t suppose to happen affect page your code totalscoretext innerhtml totalscore scorehistory innerhtml expect behavior it shouldn t pass this early into the step but it do screenshot issue dicegame system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | learn local storage by build a todo app | Bug | describe the issue I be try to get past step 30 use an arrow syntax to create an addorupdate function then move the dataarrindex variable taskobj and if statement in the addorupdate function affect page learn localstorage by build a todo app your code const addorupdatetask dataarrindex taskobj if expect behavior I expect the dataarrindex taskobj and the if statement to all be in side the addorupdate function screenshot you can enhance code readability and maintainability by refactore the submit event listener into two separate function the first function can be use to add the input value to taskdata while the second function can be responsible for add the task to the dom use arrow syntax to create an addorupdatetask function then move the dataarrindex variable the taskobj object and the if statement into the addorupdatetask function system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context here be the error message I keep get you should move the dataarrindex variable into the addorupdatetask function |
freecodecampfreecodecamp | add code example for first mention of array from mention step 89 calorie counter | Bug | describe the issue for consistency whenever we introduce a new concept it should include a code example update description for step 89 md remember that document queryselectorall return a nodelist which be array like but be not an array however the array object have a from method that accept an array like and return an array this be helpful when you want access to more robust array method which you will learn about in a future project js const divarray array from document queryselectorall div affect page your code see explanation above expect behavior see explanation above screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | add code example for first mention of remove method step 85 calorie counter | Bug | describe the issue we should add a code example for the remove method in step 85 md finally you need to make the output element visible so the user can see your text your output variable be an element which have a classlist property this property have a remove method which accept a string represent the class to remove from the element js const paragraphelement document getelementbyid paragraph paragraphelement classlist remove hide affect page your code see explanation above expect behavior see explanation above screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | add code example for math abs introduction in step 81 calorie counter | Bug | describe the issue whenever we introduce a new concept we should include a code example sometimes we do this and sometimes we don t which create inconsistency in the curriculum to fix this let s update the description to include a code example update description for step 81 md description when the user have a calorie deficit the remainingcalorie value will be negative you don t want to display a negative number in the result string math abs be a build in javascript method that will return the absolute value of a number js const num 5 math abs num 5 in your span text wrap your remainingcalorie reference in math ab to ensure that the value be positive affect page your code see explanation above expect behavior see explanation above screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | provide code example for first mention of tolowercase method in step 79 calorie counter | Bug | describe the issue we introduce the tolowercase method in step 79 but do not provide a code example for consistency we should provide code example for these method when they be first introduce update step 79 description md when you need to lower case a string you can use the tolowercase method this method return the call string value convert to low case js const firstname jessica console log firstname tolowercase output jessica your output innerhtml string will need a span element create that and give it a class attribute set to the surplusordeficit variable your surplusordeficit variable should be convert to low case use the tolowercase method do not give your span any text yet affect page your code see explanation above expect behavior see explanation above screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | update code example in step 63 of calorie counter project to show nan | Bug | describe the issue in step 63 we show the number constructor with an example check for a valid number but we also mention nan so it would be nice to add to the example update description code example for step 63 md the number constructor be a function that convert a value to a number if the value can not be convert it return nan which stand for not a number here be an example js number 10 return the number 10 number abc return nan affect page your code see explanation above expect behavior see explanation above screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | provide explanation for null in calorie counter project | Bug | describe the issue we have casually mention null in previous step but never really define it so camper will no clue what null be we should provide a short definition update step 62 description md in programming null be mean to represent the absence of a value in this case if the user enter an invalid input you want to alert they and then return null to indicate that the function have fail still within your if block set iserror to true and return null affect page your code see explanation above expect behavior see explanation above screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | my code isn t work | Bug | describe the issue the body of the if statement isn t work what can be do affect page learn basic string and array method by build a music player your code if userdata currentsong i d i d userdata currentsong null userdata songcurrenttime 0 pausesong setplayerdisplay expect behavior the body of the if statement be not work and I don t know why screenshot challenge system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | break link to the hall of fame list in the security tab of this repository | Bug | describe the issue in this file if you go point three of the guideline section it state while we do not offer any bounty or swag at the moment we ll be happy to list your name in our hall of fame list provide the report be not low effort the link to this file do not work and just give you this error 404 page not find note this be not an error in a code challenge but in your security policy affect page step to reproduce 1 go to the security policy here 2 scroll down to point three of the guideline page 3 click on the link to the hall of fame 4 see error expect behavior I expect to be take to a md file with the hall of fame but instead encounter an error screenshot image image system device chromebook os chrome os browser google chrome version I don t know additional context no response |
freecodecampfreecodecamp | error in instruction in step 76 in music player | Bug | describe the issue there shouldn t be optional chain when assignin affect page your code if userdata currentsong i d i d userdata currentsong null userdata songcurrenttime 0 pausesong setplayerdisplay expect behavior the instruction should be if there be a match then set userdata currentsong to null and userdata songcurrenttime to 0 screenshot no response system device laptop os window 10 browser chrome version 22 additional context no response |
freecodecampfreecodecamp | add code example for event listener method intro step 50 calorie counter | Bug | describe the issue we should have a code example for the addeventlistener method when it be first introduce we should also break up the paragraph more to break up the content and make it easy to read through update description md description in the role play game project you learn how to set a button s behavior by edit its onclick property you can also edit an element s behavior by add an event listener the follow example use the addeventlistener method to add a click event to a button when the button be click the printname function be call html print name js const button document queryselector btn function printname console log jessica button addeventlistener click printname the addeventlistener method take two argument the first be the event to listen to ex click the second be the callback function or the function that run when the event be trigger call the addeventlistener method on the addentrybutton pass in the string click for the first argument and the addentry function for the second argument note that you should not call addentry but pass the variable or function reference directly affect page your code see explanation above expect behavior see explanation above screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | add code example of intro to str match step 35 of calorie counter | Bug | describe the issue we should always have a code example when introduce a new concept here be the new update description for step 35 md string have a match method which take a regex argument match will return an array of match result contain either the first match or all match if the global flag be use js const str example string const regex example const result str match regex return example return the result of call the match method on str and pass your regex variable as the argument you ll use this match result later on affect page your code see explanation above expect behavior see explanation above screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | challenge editor error unexpected token doctype be not valid json | Bug | describe the issue when open the challenge editor I see this unexpected token system device macbook m1 os macos 13 4 1 22f82 browser chrome additional context no response |
freecodecampfreecodecamp | explain naming convention for boolean variable in calorie counter step 17 | Bug | describe the issue throughout the curriculum we often have camper name variable that represent booleans with the prefix of be or have which follow standard convention but we never really explain that to they I think that step 17 would be a good place do that update step 17 description md description in programming it be standard practice to prefix a variable with be or have to indicate that the variable be a boolean js let isrunne true let hascompleted false declare an iserror variable and set it to false but use let so you can reassign it later affect page your code see explanation above expect behavior see explanation above screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | add miss backtick for number for step 166 and 167 rpg game | Bug | describe the issue update description step 166 md description for loop be declare with three expression separate by semicolon for a b c where a be the initialization expression b be the condition and c be the final expression the initialization expression be execute only once before the loop start and be often use to define and set up the loop variable think of it like declare a counter to use in your loop many for loop use I as the counter and start from 0 so change let x 1 to let I 0 update step 167 md description the second statement in a for loop the condition statement be evaluate at the beginning of every loop iteration the loop will continue as long as the condition evaluate to be true we want the loop to run 10 time so change x 5 to I 10 affect page your code see explanation above expect behavior see explanation above screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | show decrement operator code example and add in miss backtick for number in rpg game step 154 | Bug | describe the issue update description md description remember that the increment operator can be use to increase a variable s value by 1 there be also a decrement operator that can be use to decrease a variable s value by 1 js let num 10 num console log num output 9 decrement the value of currentweapon in your if statement after you update the text affect page your code see explanation above expect behavior see explanation above screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | fix spacing issue for step 17 of music player solution | Bug | describe the issue we have a camper on the forum unable to pass because they add a space before their closing in their button element html we should update the test to allow for extra space like this so the answer above pass affect page your code see explanation above expect behavior see explanation above screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | fix require variable in step 64 of learn class and object by build a sudoku solver | Bug | describe the issue a variable be not give or suggest in the step description only once the hint be give be the user tell to use guess as the variable it be not intialize anywhere prior to this step either forum link affect page your code def solver self if next empty self find empty cell be none return true else for x in range 1 10 pass expect behavior in the else statement x should be an acceptable answer since no variable be give or suggest screenshot no response system device laptop os window 11 browser chrome version 120 0 6099 225 additional context no response |
freecodecampfreecodecamp | fix miss backtick for number in math random explanation in rpg game | Bug | describe the issue we need to update the follow instruction here to wrap the numebrs in backtick original md use these you can generate a random number within a range for example this generate a random number between 1 and 5 math floor math random 5 1 new change md use these you can generate a random number within a range for example this generate a random number between 1 and 5 math floor math random 5 1 affect page your code see explanation above expect behavior see explanation above screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | update code example for style display explanation in rpg game | Bug | describe the issue there be a lot of confusion on the forum about step 117 in the rpg game the goal of this step be to teach camper how to work with the style property update the description and code example will clear up what be mean to happen in this step md description by default the html element that show the monster s stat have be hide with css when the player click the fight dragon button the monster s stat should be display you can accomplish this by use the style and display property on the monsterstat element the style property be use to access the inline style of an element and the display property be use to set the visibility of an element here be an example of how to update the display for a paragraph element js const paragraph document queryselector p paragraph style display block display the monsterstat element by update the display property of the style property to block affect page your code see explanation above expect behavior see explanation above screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | update if statement explanation for rpg game step 76 | Bug | describe the issue right now we have two step dedicate to teach an if statement the first step have camper move all of the function code inside an if statement with the string condition for the condition then the next step have they change the string condition to the condition gold 10 I think this can be simplify and combine into just one step also I think this will give we a well chance to explain what an if statement be and how the condition work propose new direction md description what if the player doesn t have enough gold to buy health when you want to run code conditionally you can use the if statement an if statement be use to make decision in code the keyword if be follow by a condition in parenthesis if the condition be true the code inside the curly brace be execute if the condition be false the code inside the curly brace be skip here be an example of an if statement js const num 5 if num 3 console log this code will run because num be great than or equal to 3 start by place all of the code in your buyhealth function inside an if statement for the if statement condition check if gold be great than or equal to 10 thought affect page multiple url your code see explanation above expect behavior see explanation above screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | update step 65 instruction to make it clear on correct syntax | Bug | describe the issue there be a lot of confusion on the correct syntax for step 65 a lot of camper be struglle to get to here js location button text 0 instead we have these type of answer js location button text 0 location button text 0 we should simplify the direction and show the syntax update direction md description location button text be an array with three element change the button1 innertext assignment to be location button text 0 which represent the first element of the array affect page your code see explanation above expect behavior see explanation above screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | update code example for rpg game step introduce innertext | Bug | describe the issue here be the current example for introduce the innertext property js const info document queryselector info info innertext hello world but I think it would be more effective to show the corresponding html element that go with that so they can well see the change from the old text to the new new propose description md description the innertext property control the text that appear in an html element for example html demo content js const info document queryselector info info innertext hello world the follow example would change the text of the p element from demo content to hello world when a player click your go to store button you want to change the button and text remove the code inside the gostore function and add a line that update the text of button1 to say buy 10 health 10 gold affect page your code see explanation above expect behavior see explanation above screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | update direction for onclick in rpg game | Bug | describe the issue we still have a lot of confusion on the forum about step 41 I think add a code example of what they need to do will help here be my propose update to the step update description md description button1 represent your first button element these element have a special property call onclick which you can use to determine what happen when someone click that button you can access property in javascript a couple of different way the first be with dot notation here be an example of use dot notation to set the onclick property of a button to a function reference js button onclick myfunction in this example button be the button element and myfunction be a reference to a function when the button be click myfunction will be call use dot notation to set the onclick property of your button1 to the function reference of gostore note that button1 be already declare so you don t need to use let or const affect page your code see explanation above expect behavior see explanation above screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | update code example for rpg game explanation on variable | Bug | describe the issue currently we have this introduction to variable md variable can be assign a value when you do this while you declare it this be call initialization for example js let camperbot bot this would initialize the camperbot variable with a value of bot a string the problem be we just casually mention that camperbot be a string but don t explain what a string be until a few step later plus the actual step want camper to initialize the xp variable with the value of a number so I vote we just change the example to use number update description md description variable can be assign a value when you do this while you declare it this be call initialization for example js let age 32 this would initialize the age variable with a value of the number 32 initialize your xp variable to have a value of 0 a number affect page your code see explanation above expect behavior see explanation above screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | typo in learn lambda function by build an expense tracker | Bug | describe the issue I notice a typo in the instruction for step 11 for learn lambda function by build an expense tracker the typo be in the line in the example above x be a parameter to be use in the expression expr I think the word use should be use I know it s a bit pedantic but this be beta so affect page learn lambda function by build an expense tracker your code n a expect behavior n a screenshot no response system device hp laptop os window 10 browser firefox version 122 0 additional context no response |
freecodecampfreecodecamp | build a cash register final test still break | Bug | describe the issue although my code should pass the final test and pass all the other one it fail to pass regardless of display exactly what this test require affect page your code let cid penny 0 5 nickel 0 dime 0 quarter 0 one 0 five 0 ten 0 twenty 0 one hundred 0 let price 19 5 const change tracker name one hundred value 10000 outstr 0 name twenty value 2000 outstr 0 name ten value 1000 outstr 0 name five value 500 outstr 0 name one value 100 outstr 0 name quarter value 25 outstr 0 name dime value 10 outstr 0 name nickel value 5 outstr 0 name penny value 1 outstr 0 const change due document getelementbyid change due const changeelement document getelementbyid change const cent in dollar 100 let cash convert cash total cid reg status miss change null null null null upon load add the price and drawer change document addeventlistener domcontentloade function const totalelement document getelementbyid total totalelement innerhtml price tofixe 2 drawer change handle purchase button update change information and drawer status const purchase clear any element in change due clear change div cash document getelementbyid cash value get total cash in drawer for let I 0 I cid length I total cid floatfixer total cid floatfixer cid I 1 total cid floatfixer total cid if cash length 0 alert invalid input else if cash price alert customer do not have enough money to purchase the item return else if cash price change due innerhtml no change due customer pay with exact cash return else if cash price total cid reg status insufficient fund else console log cash price total cid if cash price total cid reg status close else reg status open convert cash parseint cash price cent in dollar calculatechange convert cash changeupdate drawer change calculate the change breakdown for a give amount num iterate through element in change tracker and update value in the cid array accordingly update outstr property in change tracker const calculatechange num slowly break down the change to 0 for each element of change tracker for const element of change tracker find the matching element in cid array penny find penny let matching cid cid find index index 0 element name find index of match element let index cid indexof matching cid if num element value cid index 1 0 miss change element name 0 else while num be great than the element value while num element value cid index 1 0 decrease num by element value num element value convert element value to dollar amount let convert dollar element value cent in dollar decrease match element in cid array by element value cid index 1 floatfixer parsefloat cid index 1 convert dollar add element value to the outstr value element outstr convert dollar if num 0 reg status insufficient fund update the html content of change due element with register status and possible change const changeupdate change due innerhtml status reg status if reg status insufficient fund find all element in change tracker where outstr be not 0 base value let filter item change tracker filter element element outstr 0 change due innerhtml miss change filter item foreach element change due innerhtml element name floatfixer element outstr update the html content of the change element with remain change in the register const drawer change changeelement innerhtml change in drawer cid foreach element changeelement innerhtml element 0 element 1 reset the total cash in drawer change tracker outstr value and remove all child node from the change due element const clear change div total cid 0 change tracker foreach element element outstr 0 while change due firstchild change due removechild change due firstchild console log change due firstchild fix float point number const floatfixer num return parsefloat num tofixe 2 expect behavior pass the test screenshot capture2 system device desktop os window 10 browser chrome version 121 0 6167 86 official build 64 bit additional context no response |
freecodecampfreecodecamp | fix client don t display act error in fcc console | Bug | checklist x I have read and follow the contribution guideline x I have read and follow the how to open a pull request guide how to open a pull request x my pull request target the main branch of freecodecamp x I have test these change either locally on my machine or gitpod close 50725 hide act be not support in production build of react and might not behave as expect error from fcc console it be still display in browser console to test and observe initial issue production client build be require pnpm run build client pnpm run serve client another place that I find where filter it out be possible be template challenge redux execute challenge saga js but that s far along the execution all the yield s in that file be also a bit intimidate l167 l173 |
freecodecampfreecodecamp | update description for step 5 of calorie counter project | Bug | describe the issue instruction unclear on add the word lunch on the legend tag instruction be give to add lunch on i d but its unclear for the lunch inside the legend tag image affect page your code lunch expect behavior should have clear instruction on add lunch on the legend tag screenshot image system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | decimal to binary converter typo in step 14 | Bug | describe the issue the description say after alert the user if the number input be empty of the value be not a number but it should be this instead after alert the user if the number input be empty or the value be not a number affect page expect behavior be empty of should be change to be empty or |
freecodecampfreecodecamp | break test case at code interview prep datum structure remove an element from a max heap | Bug | describe the issue a wrong solution be accept at code interview prep datum structure remove an element from a max heap challenge affect page my code javascript const maxheap function this heap this parent index return math floor index 1 2 this insert element this heap push element this heapifyup this heap length 1 this heapifyup index let currentindex index parentindex this parent currentindex while currentindex 0 this heap currentindex this heap parentindex this swap currentindex parentindex currentindex parentindex parentindex this parent parentindex this swap index1 index2 this heap index1 this heap index2 this heap index2 this heap index1 this print return this heap only change code below this line this remove let max this heap shift for let I 0 j 2 i 1 k j 1 k this heap length I j 2 i 1 k j 1 if this heap I this heap j this swap I j return max expect behavior the test case for the remove method should remove the great element from the max heap while maintain the max heap property should not pass the next example show that the remove function do not maintain the max heap properly javascript let heap new maxheap let arr 9 3 5 for let I 0 I arr length I heap insert arr i console log heap heap output 9 3 5 console log heap remove output 9 console log heap heap output 3 5 console log heap remove output 3 system device laptop os window 10 browser chrome version 121 0 6167 86 |
freecodecampfreecodecamp | test for step 35 of todo project be to strict | Bug | describe the issue for this step camper have to add two onclick attribute but the test be expect the onclick attribute to be the first attribute list and that be only mention in the hint we should update the hint text to the follow md you should add onclick edittask this to your edit button md you should add onclick deletetask this to your delete button we should also update the test to allow for any order of the attribute affect page your code see explanation above expect behavior see explanation above screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context |
freecodecampfreecodecamp | multiple issue with the pass keyword in the case converter project | Bug | describe the issue some test do not check whether the pass keyword be add or replace as state in the description detail in the code and screenshot section affect page your code this code do not pass for step 1 as the test be look for the pass keyword to be add py def convert to snake case pascal or camel cased string in step 2 the pass keyword be in the seed code this mean camper should be tell to add the pass keyword in step 1 this pass for step 2 py def convert to snake case pascal or camel cased string pass snake case char list there should be a test check that the pass keyword be remove this pass for step 4 py def convert to snake case pascal or camel cased string snake case char list for char in pascal or camel cased string pass if char isupper pass there should be no pass keyword in the outer if statement this pass for step 5 py if char isupper pass convert character char low there should be no pass keyword in the if statement expect behavior there should be test check for the addition or replacement or removal of the pass keyword in every step mention other step should also be check for the same thing screenshot step 11 do not pass without the pass keyword camper should be tell to add it in the description screenshot 2024 01 16 at 11 37 48 be the pass keyword be in the seed code of step 12 this mean it should be state in the description that camper should add the pass keyword screenshot 2024 01 16 at 11 38 22 am in step 16 camper be ask to replace the pass keyword with the variable snake case char list but the test pass with the pass keyword right inside the editor screenshot 2024 01 16 at 11 42 17 am system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | update description and hint text for step 15 of date formatter project | Bug | describe the issue the particular instruction for what to do in step 15 go this way chain the addeventlistener method to dateoptionsselectelement where the first argument be change and the second argument be an empty arrow function this could be a bit hard to understand as the sentence be too long and have no fullstop or comma affect page your code n a expect behavior the description can go like this chain the addeventlistener method to dateoptionsselectelement set the first argument of the addeventlistener to change and the second argument to an empty arrow function or something well screenshot screenshot 2024 01 27 at 12 45 59 pm system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | editor scroll bar arrow be display in front of menu dropdown | Bug | describe the issue the arrow icon of the editor scroll bar be display in front of menu dropdown image affect page any challenge where the custom scroll bar appear on the right step to reproduce 1 go to 2 close preview pane 3 open menu it be more visible when you set the editor scrollbar width to be wide in your setting expect behavior the arrow icon should be hide by the menu dropdown screenshot see above system device laptop os window 10 browser chrome version 120 0 6099 225 official build 64 bit additional context no response |
freecodecampfreecodecamp | fix curriculum format in rosetta code deal card for freecell | Bug | checklist x I have read and follow the contribution guideline x I have read and follow the how to open a pull request guide how to open a pull request x my pull request target the main branch of freecodecamp x I have test these change either locally on my machine or gitpod close xxxxx find this issue while work on proofread the translation the formatting in the bullet list be incorrect compare to the original rosetta code website make it difficult to understand the instruction affect page image |
freecodecampfreecodecamp | update strict test for build a music player step 15 | Bug | describe the issue a test do not pass if a span element s content be on a separate line it seem that this should be acceptable as it could cause confusion and or take the freecodecamp student out of flow affect page your code song title expect behavior write song title on a separate line from its opening span tag should be an acceptable answer as a student would see code write as such in codebase out in the wild currently this be the code that pass and be in my opinion too strict song title the following should also be an acceptable answer song title screenshot an acceptable answer do not pass the test this be the only answer that pass the test but it be too strict system device laptop os macos sonoma browser chrome version 120 0 6099 234 additional context no response |
freecodecampfreecodecamp | spreadsheet project step 51 fix typo in the instruction | Bug | describe the issue the function use in the code name addcharacter js const addcharacter character1 character2 num charrange character1 character2 map elemvalue instruction mention addchar function because elemvalue return a function your addchar function ultimately return an array of function reference affect page your code expect behavior instruction should mention addcharacter function not addchar function screenshot no response system device laptop os window 10 browser chrome additional context no response |
freecodecampfreecodecamp | numpy operation correct typo and incorrect answer | Bug | describe the issue the give option 20 21 22 24 24 should be 20 21 22 23 24 and the answer 2 0 1 2 3 4 should be 1 20 21 22 23 24 import numpy as np a np arange 5 a 20 array 20 21 22 23 24 affect page your code na expect behavior na screenshot na system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 na additional context no response |
freecodecampfreecodecamp | stray code in cash register boilerplate | Help Wanted | describe the issue stray code be populate in the boilerplate for the cash register project affect page your code let price 1 87 let cid penny 1 01 nickel 2 05 dime 3 1 quarter 4 25 one 90 five 55 ten 20 twenty 60 one hundred 100 expect behavior user should have blank project to start screenshot no response system all additional context no response |
freecodecampfreecodecamp | javascript learn function programming by build a spreadsheet step 14 to sensitive | Bug | describe the issue the test be just to sensitive this step be not allone in this we be ask to call the foreach method on the array letter and put in our createlabel method as callback function letter foreach letter createlabel letter doesn t pass allthough it s syntactly correct and in my opinion clear while the follow letter foreach createlabel do pass didn t take I to long to revert back to the short version but they both do the same and most of the time an arrow call back function be want in the test so we be get condition to use the arrow syntax affect page your code letter foreach letter createlabel letter vs letter foreach createlabel expect behavior well I expect to get a pass with the first version aswell screenshot no response system device laptop os window 10 browser chrome version probably the late additional context no response |
freecodecampfreecodecamp | javascript beta certification | Bug | describe the issue can anyone please help I rectify this problem I be get this problem after click on javascript beta certification affect page step to reproduce step 1 launch the freecodecamp on localhost step 2 click on the option javascript javascript algorithm and datum structure v8 recommend fix or suggestion maybe the problem be in the database screenshot image |
freecodecampfreecodecamp | miss test case information for pokemon search app project | Bug | describe the issue example when the search input element contain the value pikachu and the search button element be click the value in the pokemon name pokemon i d weight height hp attack defense special attack and special defense element should be pikachu 25 or 25 weight 60 or 60 height 4 or 4 35 55 40 50 50 and 90 respectively here speed be miss lead to unclear error same hold true for the gangar test case this could easily be fix by change the wording in affect page your code expect behavior I excpecte the test case to include all element that should ve be return change screenshot no response system device e g iphone 6 laptop os e g ios 14 window 10 ubuntu 20 04 browser e g chrome safari version e g 22 additional context no response |
freecodecampfreecodecamp | learn functional programming by build a spreadsheet step 16 test be pass for incorrect solution | Bug | describe the issue the follow code be accept as a correct solution issue for fcc 2024 01 25 232211 however this part letter foreach letter be expect to be nest in the callback like below js range 1 99 foreach number createlabel number letter foreach letter affect page your code expect behavior this solution should not be accept as correct js const range start end array end start 1 fill start map element index element index const charrange start end range start charcodeat 0 end charcodeat 0 map code string fromcharcode code window onload const container document getelementbyid container const createlabel name const label document createelement div label classname label label textcontent name container appendchild label const letter charrange a j letter foreach createlabel range 1 99 foreach number createlabel number letter foreach letter optional instruction should specify that letter foreach call should be nest in the range 1 99 foreach call screenshot no response system device laptop os window 10 browser chrome additional context no response |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.