i am trying to split a string in javascript . it works fine in firefox but, it fails in chrome. could anyone please share the ideas in this.
i used the following code:
var v="asd.sdf";
var arr=v.split('.');
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I just tried it in Chrome 17.0.963.78 and it works fine:
Gave:
What am I doing that is different to you?