![JavaScript basic: Create a new string from a given string, removing the first and last characters of the string if the first or last character are 'P' - w3resource JavaScript basic: Create a new string from a given string, removing the first and last characters of the string if the first or last character are 'P' - w3resource](https://www.w3resource.com/w3r_images/javascript-basic-image-exercise-67.png)
JavaScript basic: Create a new string from a given string, removing the first and last characters of the string if the first or last character are 'P' - w3resource
![Use Bracket Notation to Find the Last Character in a String, freeCodeCamp Basic Javascript - YouTube Use Bracket Notation to Find the Last Character in a String, freeCodeCamp Basic Javascript - YouTube](https://i.ytimg.com/vi/DtpyTbkQ4S8/maxresdefault.jpg)
Use Bracket Notation to Find the Last Character in a String, freeCodeCamp Basic Javascript - YouTube
![JavaScript basic: Create a new string from a given string changing the position of first and last characters - w3resource JavaScript basic: Create a new string from a given string changing the position of first and last characters - w3resource](https://www.w3resource.com/w3r_images/javascript-basic-image-exercise-23.png)