Skip to content

Commit

Permalink
Update index.md - correct typo on nubmer, +1 example (mdn#28239)
Browse files Browse the repository at this point in the history
  • Loading branch information
raro42 authored Jul 28, 2023
1 parent 6359ece commit 5563ac3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion files/en-us/web/api/url/port/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,16 @@ new URL("https://example.com:5443/svn/Repos/").port; // '5443'
new URL("http://example.com:8080/svn/Repos/").port; // '8080'
// https protocol with default port number
new URL("https://example.com:443/svn/Repos/").port; // '' (empty string)
// http protocol with default port nubmer
// http protocol with default port number
new URL("http://example.com:80/svn/Repos/").port; // '' (empty string)
// https protocol with no explicit port number
new URL("https://example.com/svn/Repos/").port; // '' (empty string)
// http protocol with no explicit port number
new URL("https://example.com/svn/Repos/").port; // '' (empty string)
// ftp protocol with non-default port number
new URL("ftp://example.com:221/svn/Repos/").port; // '221'
// ftp protocol with default port number
new URL("ftp://example.com:21/svn/Repos/").port; // '' (empty string)
```

## Specifications
Expand Down

0 comments on commit 5563ac3

Please sign in to comment.