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

Javascript Curriculum should alert camper that they're trying to print the page #54487

Closed
a2937 opened this issue Apr 22, 2024 · 2 comments
Closed
Labels
new javascript course These are for issues dealing with the new JS curriculum scope: curriculum Lessons, Challenges, Projects and other Curricular Content in curriculum directory. status: discussing Under discussion threads. Closed as stale after 60 days of inactivity. type: bug Issues that need priority attention. Platform, Curriculum tests (if broken completely), etc.

Comments

@a2937
Copy link
Member

a2937 commented Apr 22, 2024

Describe the Issue

It's not exactly common, but it's an extremely easy mistake to make. In Python, you would use the print function to print things out. However in our JavaScript lessons; it prompts the camper to print out the current page they're in within the curriculum. There should be some kind of universal check tied to this type of challenge that determines if the code in the challenge contains the print function instead of console.log.

Affected Page

https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures-v8/learn-introductory-javascript-by-building-a-pyramid-generator/step-4

Your code

print("This is a test"); 

Expected behavior

Rather than the print page prompt showing up, the test once evaluated should tell me that I've made a mistake and should be using console.log.

Screenshots

No response

System

  • Device: Desktop
  • OS: Windows 10
  • Browser: Firefox
  • Version: 125.0.2

Additional context

Appears on this thread.

https://forum.freecodecamp.org/t/stuck-on-step-32-print-i-is-going-to-my-printer/686617

@a2937 a2937 added type: bug Issues that need priority attention. Platform, Curriculum tests (if broken completely), etc. 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. labels Apr 22, 2024
@a2937 a2937 changed the title Javascript Curriculum should alert user that they're trying to print the page Javascript Curriculum should alert camper that they're trying to print the page Apr 22, 2024
@naomi-lgbt
Copy link
Member

Interesting. I'm not a fan of overwriting the built-in print, personally.

@naomi-lgbt naomi-lgbt added status: discussing Under discussion threads. Closed as stale after 60 days of inactivity. and removed status: waiting triage This issue needs help from moderators and users to reproduce and confirm its validity and fix. labels Apr 22, 2024
@gikf gikf added the new javascript course These are for issues dealing with the new JS curriculum label Apr 26, 2024
@Sembauke
Copy link
Member

Sembauke commented Apr 29, 2024

Hey @a2937,
Thanks for bringing this to our intention. I think this is mostly because this user is new to programming. We should allow them to make mistakes!

We already have an example in the instructions on how to "print" something to console. I do not think we can make it any easier without over-engineering the test evaluator.

Thus I am closing this as not planned. Feel free to reopen if you feel like doing so.

@Sembauke Sembauke closed this as not planned Won't fix, can't repro, duplicate, stale Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new javascript course These are for issues dealing with the new JS curriculum scope: curriculum Lessons, Challenges, Projects and other Curricular Content in curriculum directory. status: discussing Under discussion threads. Closed as stale after 60 days of inactivity. type: bug Issues that need priority attention. Platform, Curriculum tests (if broken completely), etc.
Projects
None yet
Development

No branches or pull requests

4 participants