I'm just trying to split textfile data into words and then comparing it but it don't return true.
var contents = e.target.result.split("\n");
if (contents[0] === "abc"])
alert("abc=abc");
above is the simplest code i am trying to test but even on a single word it gives false. Help
Why you are placed
]
in your if condition after "abc"? Remove itReference