Skip to content

Commit e4b7f66

Browse files
authored
Merge pull request #1140 from 1van0v/patch-4
change parameter name to the set one
2 parents ce42dab + 7add38b commit e4b7f66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

5-network/07-url/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ For example:
9494
let url = new URL('https://google.com/search');
9595
url.searchParams.set('q', 'test me!'); // added parameter with a space and !
9696

97-
alert(url); // https://google.com/search?query=test+me%21
97+
alert(url); // https://google.com/search?q=test+me%21
9898

9999
url.searchParams.set('tbs', 'qdr:y'); // this parameter specifies for date range for Google Search
100100

0 commit comments

Comments
 (0)