As the title explains the query
Can somebody please explain the behavior of following two outputs.
"".split(",").length
gives output
1
where as
",".split(",").length
gives output
0
See Question&Answers more detail:os