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

Concatenation in context section gives no prompt #34687

Closed
pirut opened this issue Jul 7, 2024 · 1 comment
Closed

Concatenation in context section gives no prompt #34687

pirut opened this issue Jul 7, 2024 · 1 comment
Labels
closed: duplicate This issue or pull request already exists Content:Learn:JavaScript Learning area JavaScript docs

Comments

@pirut
Copy link

pirut commented Jul 7, 2024

MDN URL

https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/Strings

What specific section or headline is this issue about?

Concatenation in context

What information was incorrect, unhelpful, or incomplete?

<button>Press me</button>
<div id="greeting"></div>
const button = document.querySelector("button");

function greet() {
  const name = prompt("What is your name?");
  const greeting = document.querySelector("#greeting");
  greeting.textContent = `Hello ${name}, nice to see you!`;
}

button.addEventListener("click", greet);

There is no prompt that gets thrown when you click the button in the playground.

What did you expect to see?

I expected to see a prompt asking for my name

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

No response

MDN metadata

Page report details
@pirut pirut added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Jul 7, 2024
@github-actions github-actions bot added the Content:Learn:JavaScript Learning area JavaScript docs label Jul 7, 2024
@Josh-Cena
Copy link
Member

Tracked in #7566

@Josh-Cena Josh-Cena closed this as not planned Won't fix, can't repro, duplicate, stale Jul 7, 2024
@Josh-Cena Josh-Cena added closed: duplicate This issue or pull request already exists and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Jul 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed: duplicate This issue or pull request already exists Content:Learn:JavaScript Learning area JavaScript docs
Projects
None yet
Development

No branches or pull requests

2 participants