SyntaxFix
Write A Post
Hire A Developer
Questions
//split string into an array and grab the first item var streetaddress = addy.split(',')[0];
Also, I'd recommend naming your variables with camel-case(streetAddress) for better readability.