Skip to content

Feature: Toggle difficulty of JavaScript solution code #312

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

Open
terichadbourne opened this issue Oct 17, 2019 · 0 comments
Open

Feature: Toggle difficulty of JavaScript solution code #312

terichadbourne opened this issue Oct 17, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@terichadbourne
Copy link
Member

Recent lesson feedback shows that we have many users who are interested in tackling our coding challenges but fairly new to JavaScript and a bit put off by more advanced JavaScript tricks like powerful array methods that make the code more concise and elegant but are harder to understand than simpler and more verbose solutions like for loops.

Currently we're addressing this by:

  • Adding hints with links to documentation for JavaScript methods they'll need
  • Using some commented-out code in our solution so that we can present both easier and harder options for solving the problem

While not essential, it could be cool to offer a toggle of some sort that lets the user choose between seeing a beginner JavaScript versus an advanced JavaScript solution to each problem where this is relevant. This shouldn't affect validation at all since the result of the code would be identical.

There's a related issue in that we use the solution code from one lesson to inform the starter code for the next, and it's always tempting to use the advanced, more concise methods there to save space, so how this would interplay with the solution toggle is a potential complication.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant