<<<<<<< HEAD Code Wars - Brett Crafton

Remove First and Last Character

Question

It's pretty straightforward. Your goal is to create a function that removes the first and last characters of a string. You're given one parameter, the original string. You don't have to worry with strings with less than two characters.

No examples

Solution by -

My Solution


	function removeChar(str){
		return str.substring(1, str.length -1 )
		};
				

Try it yourself - CodeWars

======= Code Wars - Brett Crafton

Remove First and Last Character

Question

It's pretty straightforward. Your goal is to create a function that removes the first and last characters of a string. You're given one parameter, the original string. You don't have to worry with strings with less than two characters.

No examples

Solution by -

My Solution


	function removeChar(str){
		return str.substring(1, str.length -1 )
		};
				

Try it yourself - CodeWars

>>>>>>> 0e614172debaa009c8d31330edbeb3b765b59c39