Skip to content

Commit 8f9d5dd

Browse files
Update 9-regular-expressions/16-regexp-sticky/article.md
Co-authored-by: joaquinelio <joaquinelio@gmail.com>
1 parent 06bd468 commit 8f9d5dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

9-regular-expressions/16-regexp-sticky/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ let regexp = /\w+/g;
3636
alert(regexp.lastIndex); // 0 (inicialmente lastIndex=0)
3737

3838
let word1 = regexp.exec(str);
39-
alert(word1[0]); // let (1er palabra)
39+
alert(word1[0]); // let (primera palabra)
4040
alert(regexp.lastIndex); // 3 (Posición posterior al emparejamiento)
4141

4242
let word2 = regexp.exec(str);

0 commit comments

Comments
 (0)