SyntaxFix
Write A Post
Hire A Developer
Questions
I have used .split(" ")[0] to get all the characters before space.
.split(" ")[0]
productName.split(" ")[0]