Skip to content

Commit

Permalink
Update files/en-us/web/api/htmlanchorelement/text/index.md
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
ShubhamOulkar and github-actions[bot] authored Jan 26, 2024
1 parent 3c957aa commit 8bb94ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/en-us/web/api/htmlanchorelement/text/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ A string.
```js
const anchorElement = document.getElementById("exampleLink");
const pTag = document.querySelector(".text");
pTag.textContent = `Text property: ${anchorElement.text}`;
pTag.textContent = `Text property: ${anchorElement.text}`;
```

### Result
Expand Down

0 comments on commit 8bb94ef

Please sign in to comment.