Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check your code button not working - Learn Basic JavaScript by Building a Role Playing Game #53875

Closed
zbrcic opened this issue Feb 25, 2024 · 3 comments
Labels
scope: curriculum Lessons, Challenges, Projects and other Curricular Content in curriculum directory. status: waiting triage This issue needs help from moderators and users to reproduce and confirm its validity and fix. type: bug Issues that need priority attention. Platform, Curriculum tests (if broken completely), etc.

Comments

@zbrcic
Copy link

zbrcic commented Feb 25, 2024

Describe the Issue

When I click the "Check your code" button nothing happens, either by mouse or by ctrl+enter. reset button works fine.
I dont know what causes it to stop responding, I thought copy pasteing might have to do with it, but seems random, sometimes clearing the cookies and cashe + restarting everything helps (i've turned off adbocker and tried firefox, edge and chrome too)

Affected Page

https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures-v8/learn-basic-javascript-by-building-a-role-playing-game/step-89

Your code

function buyWeapon() {
  if (gold >= 30) {
    gold -= 30;
    currentWeapon++;
    goldText.innerText = gold;
    let newWeapon = weapons[currentWeapon].name;
    text.innerText = "You now have a new weapon.";
  }
}


Expected behavior

I expect to have my code checked, and be offered help if check fails but nothing happens

Screenshots

image

System

  • Device: PC
  • OS: Windows 10,
  • Browser: firefox, chrome, edge

Additional context

No response

@zbrcic zbrcic added scope: curriculum Lessons, Challenges, Projects and other Curricular Content in curriculum directory. status: waiting triage This issue needs help from moderators and users to reproduce and confirm its validity and fix. type: bug Issues that need priority attention. Platform, Curriculum tests (if broken completely), etc. labels Feb 25, 2024
@zbrcic
Copy link
Author

zbrcic commented Feb 25, 2024

Okay i have a new development. it stops working when I type in double quotes " sign
Screenshot_3

works, but as soon as I add " it stops responding

Screenshot_4

@zbrcic
Copy link
Author

zbrcic commented Feb 25, 2024

i've skipped to the next step and reached step 98, which stops working when i use equals sign on line 104 (button2.onclick =)

@gikf
Copy link
Member

gikf commented Feb 25, 2024

Thank you for reporting this issue.

That can happen when there are errors in the code, if you take a look at the console there should be some error displayed. There's earlier issue tracking this #52749.

Regarding the specific problem with the code, forum will be a more appropriate place for that. Please click the "Help" button on the challenge on freeCodeCamp, which will help you create a question in the right part of the forum. Volunteers on the forum usually respond to questions within a few hours and can help determine if there is an issue with your code or the challenge's tests.

Thank you and happy coding.

@gikf gikf closed this as not planned Won't fix, can't repro, duplicate, stale Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: curriculum Lessons, Challenges, Projects and other Curricular Content in curriculum directory. status: waiting triage This issue needs help from moderators and users to reproduce and confirm its validity and fix. type: bug Issues that need priority attention. Platform, Curriculum tests (if broken completely), etc.
Projects
None yet
Development

No branches or pull requests

2 participants