Problem with the toLowerCase and toUpperCase function
Posted: Sun Oct 23, 2022 3:45 pm
Hey guys I'm trying to make my first webtease but I'm encountering a problem. I have taken the name of the player with a prompt and saved it to a variable called 'name'. I want this to always have a capital first letter and the rest lowercase (because it's a name) and I've tried to do that using an eval with as seen in the picture below. When I tested it by using a say command that said : 'name2'. When I filled in jAmES (not my real name) it returned me exactly what I put in. What am I doing wrong?