![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
![How To Get The Last Character of a String in JavaScript | Getting Last Character from String - YouTube How To Get The Last Character of a String in JavaScript | Getting Last Character from String - YouTube](https://i.ytimg.com/vi/wzn1B-AiD-I/mqdefault.jpg)