Skip to content
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

Replace alert in Learn/JavaScript/First_steps/Variables #34487

Merged
merged 4 commits into from
Jun 28, 2024

Conversation

evelinabe
Copy link
Contributor

Description

Replace alert in the introduction to variables in JavaScript. Instead of alerts and prompts I added a counter that counts the number of times the user has clicked a button. The text was also updated for the new example.

Motivation

The current example is broken. Replacing the alert with a counter gives a working example for a basic variable in JavaScript.

Additional details

Related issues and pull requests

Relates to #7566

@evelinabe evelinabe requested a review from a team as a code owner June 28, 2024 13:39
@evelinabe evelinabe requested review from Josh-Cena and removed request for a team June 28, 2024 13:39
@github-actions github-actions bot added Content:Learn:JavaScript Learning area JavaScript docs size/s [PR only] 6-50 LoC changed labels Jun 28, 2024
@Josh-Cena Josh-Cena mentioned this pull request Jun 28, 2024
27 tasks
Copy link
Contributor

github-actions bot commented Jun 28, 2024

Preview URLs

(comment last updated: 2024-06-28 14:42:27)

Copy link
Member

@Josh-Cena Josh-Cena left a comment

Choose a reason for hiding this comment

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

Awesome work 👍 I love the idea of this.

@Josh-Cena Josh-Cena merged commit f09223e into mdn:main Jun 28, 2024
8 checks passed
@evelinabe
Copy link
Contributor Author

Thank you!

wbamberg added a commit to wbamberg/content that referenced this pull request Jun 29, 2024
* upstream/main: (58 commits)
  Update arrow function documentation to clarify naming and assignment (mdn#34501)
  update fetch guide (mdn#34278)
  Replace alert in Learn/JavaScript/First_steps/Variables (mdn#34487)
  Replace alert in MDN/Writing_guidelines/Page_structures/Live_samples (mdn#34479)
  Fix typo (mdn#34486)
  Remove SVG color-profile attribute (mdn#34482)
  Remove SVG enable-background attribute (mdn#34483)
  Remove SVG kerning attribute (mdn#34475)
  Updated the description of `targetOrigin`  to specify the intended re… (mdn#34114)
  Mention CSWH in WebSocket server guide (mdn#34411)
  Add note to CSP sandbox saying allow-top-navigation is redundant (mdn#34415)
  Mention navigator.languages may be truncated and Accept-Language may have fallback (mdn#34418)
  Remove IDB output "example", preferring live example (mdn#34464)
  Mention that pinch-zoom are also wheel events (mdn#34468)
  Mention that flex-basis is floored at min-content (mdn#34469)
  More content to Global object glossary (mdn#34471)
  Fix IDB cursor prev direction description (mdn#34463)
  Remove all line number references to inline code examples (mdn#34459)
  Remove link to notification example (mdn#34412)
  Replaces HTML entity glossary links/mentions with char reference (mdn#34391)
  ...
@evelinabe evelinabe deleted the 7566-replace-alert-learn-js-variables branch July 5, 2024 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:Learn:JavaScript Learning area JavaScript docs size/s [PR only] 6-50 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants