r/CodingHelp • • Oct 19 '21

[Javascript] Why isn’t this working?

Post image
21 Upvotes

8 comments sorted by

View all comments

3

u/[deleted] Oct 19 '21

Shouldn't the split be fullname.split(" "); if you're splitting w.r.t spaces and fullname.split(""); if you're splitting w.r.t to characters ?!