hisoka Posted February 21, 2015 Share Posted February 21, 2015 if we have two arrays: var a = new Array(1); var b = new Array(2); how to combine them using join() function not concat()? Link to comment Share on other sites More sharing options...
Ingolme Posted February 22, 2015 Share Posted February 22, 2015 The join() method turns an array into a string. The concat() method combines arrays. You will need to use concat() to combine them. If you want to turn that into a string then just call join() on the array that results from the concat() operation. 1 Link to comment Share on other sites More sharing options...
hisoka Posted February 22, 2015 Author Share Posted February 22, 2015 ok thank you Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now