javascript-tutorial / en.javascript.info

Modern JavaScript Tutorial
https://javascript.info
Other
23.44k stars 3.85k forks source link

Inappropriate code run button in the task description #3697

Open Alexandre887 opened 4 months ago

Alexandre887 commented 4 months ago

In the “Function in if” task, there is a button for running the code, which allows to find out the answer to the task at once, even without going to the section with the solution.

image

FloffyGarlic commented 3 months ago

The reader can already check the solution by just one button press: the "solution" button. Besides, seeing the engine actually return the solution described in the "solution" part can make the explanation feel proven. I don't think this is harmful.