@@ -754,14 +808,15 @@ let decodedUrl = urlDecode('https%3A%2F%2Fexample.com');
...
@@ -754,14 +808,15 @@ let decodedUrl = urlDecode('https%3A%2F%2Fexample.com');
## `urlEncode(url)`
## `urlEncode(url)`
**Description:**\
### Description
Encodes non-ASCII characters, unsafe ASCII characters, and spaces so the returned string can be used on the Internet. Uses UTF-8 encoding. Uses percent (%) encoding.
Encodes non-ASCII characters, unsafe ASCII characters, and spaces so the returned string can be used on the Internet. Uses UTF-8 encoding. Uses percent (%) encoding.
**Parameters:**
### Parameters
-`url`: String - The URL to encode.
-`url`: String - The URL to encode.
**Usage:**
### Usage
```javascript
```javascript
letencodedUrl=urlEncode('https://example.com');
letencodedUrl=urlEncode('https://example.com');
...
@@ -769,14 +824,15 @@ let encodedUrl = urlEncode('https://example.com');
...
@@ -769,14 +824,15 @@ let encodedUrl = urlEncode('https://example.com');
## `warn(message)`
## `warn(message)`
**Description:**\
### Description
Writes a warning message to the system log.
Writes a warning message to the system log.
**Parameters:**
### Parameters
-`message`: String - The warning message to log.
-`message`: String - The warning message to log.
**Usage:**
### Usage
```javascript
```javascript
warn('This is a warning message');
warn('This is a warning message');
...
@@ -784,14 +840,15 @@ warn('This is a warning message');
...
@@ -784,14 +840,15 @@ warn('This is a warning message');