Skip to content

London | 26-ITP-January | Khaliun Baatarkhuu | Sprint 1 | Coursework. #1030

Open
khaliun-dev wants to merge 14 commits intoCodeYourFuture:mainfrom
khaliun-dev:coursework/sprint-1
Open

London | 26-ITP-January | Khaliun Baatarkhuu | Sprint 1 | Coursework. #1030
khaliun-dev wants to merge 14 commits intoCodeYourFuture:mainfrom
khaliun-dev:coursework/sprint-1

Conversation

@khaliun-dev
Copy link

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

Debugged errors, explained some of the answers i have provided with reasoning, and implemented functions.

Questions

None at the moment.

@khaliun-dev khaliun-dev added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 23, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 23, 2026
@github-actions

This comment has been minimized.

@khaliun-dev khaliun-dev changed the title London | 26-ITP-January | Khaliun Baatarkhuu | Sprint - 1 | Coursework. London | 26-ITP-January | Khaliun Baatarkhuu | Sprint 1 | Coursework. Feb 23, 2026
@khaliun-dev khaliun-dev added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 23, 2026
Comment on lines +26 to +27
3. If I enter my name undefined appears, same if i press the cancel button. Fixed this by adding myName at the end.
Now the value when i enter my name shows "my name", if i press cancel it shows "null".
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What you observed were the output produced by console.log()

When a value is output on the console, it is converted to a string first. As such, just by looking at the output, we could not tell the actual type of the value being returned by the function. For examples, in both of the following actions, console.log() would output "null" on the screen.

  • A user entered "null" in the dialog box and then clicked "OK.
  • A user entered nothing in the dialog box and then clicked "Cancel"

Can you look up the Window.prompt() function at MDN Web Docs and find out what this function returns?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Window.prompt() returns a string containing the text entered by the user, or null.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cjyuan Good morning,

Thank you for your hard work reviewing everything and your feedback. I think, i have completed and understood all the points you have raised.

Could you have another look, please?

Khaliun

@cjyuan cjyuan added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Mar 4, 2026
@khaliun-dev khaliun-dev added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 4, 2026
@cjyuan
Copy link
Contributor

cjyuan commented Mar 4, 2026

All responses are spot on. Well done.

@cjyuan cjyuan added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Reviewed Volunteer to add when completing a review with trainee action still to take. labels Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Complete Volunteer to add when work is complete and all review comments have been addressed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants