Escape a string with escape function in JavaScript
Description
The following code shows how to escape a string with escape function.
Example
console.log(escape("java2s'.'com A & B C"));
The code above generates the following result.
The following code shows how to escape a string with escape function.
console.log(escape("java2s'.'com A & B C"));
The code above generates the following result.