Skip to content

Commit

Permalink
using const instead of let keyword for createRange() (#32739)
Browse files Browse the repository at this point in the history
using const instead of let keyword
  • Loading branch information
fuchunhui authored Mar 19, 2024
1 parent 27bc03c commit 73016be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/en-us/web/api/document/createrange/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ The created {{domxref("Range")}} object.
## Examples

```js
let range = document.createRange();
const range = document.createRange();

range.setStart(startNode, startOffset);
range.setEnd(endNode, endOffset);
Expand Down

0 comments on commit 73016be

Please sign in to comment.