Teacher chatBot Step 13 Solution

You may get stuck at: Build a Teacher chatBot step 13 workshop. Here is simple answer for you.

first of all lets understand what’s written in the instructions to solve the problem. It says

“Create a new variable called lastCharacter and assign it the value of the last character in the subject variable.

Then, log the value of the lastCharacter variable to the console.”

Shortly, this code below is the answer:

removed by moderator

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge. How to Help Someone with Their Code Using the Socratic Method

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

Yeah Absolutely. My bad i didn’t think of that way. I just want to help you know

1 Like