Skip to content

Debug code does not match lesson #3729

@mrpwilliams80

Description

@mrpwilliams80

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:

  • Chrome: 126.0.6478.185 (Official Build) (64-bit)
  • Firefox: 128.0.3 (64-bit)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions