javascript-tutorial / en.javascript.info

Modern JavaScript Tutorial
https://javascript.info
Other
23.33k stars 3.84k forks source link

Debug code does not match lesson #3729

Open mrpwilliams80 opened 1 month ago

mrpwilliams80 commented 1 month ago

Code Quality - 1. Debugging in the Browser, example page

The code shown in the sources panel is currently condensed to only two lines:

function hello(name){let phrase=`Hello, ${name}!`;say(phrase);}
function say(phrase){alert(`** ${phrase} **`);}

This is rather than spread over nine lines as shown in both the examples and repo .

Editing the source in browser does allow for the addition of breakpoints but upon directed refresh the code is reset to its original state and the results do not match those in the tutorial text.

Given the repo code seems to be as intended suggests perhaps a deployment issue.

Confirmed with browser versions: