I am looking to create a system which on signup will create a subdomain on my website for the users account area.
Cisco Certified Network Associate Exam,640-802 CCNA All Answers ~100/100. Daily update
Cisco Certified Network Associate Exam,640-802 CCNA All Answers ~100/100. Daily update
If I had a string with three values that is delimited by spaces, now I want to store these three values in three variables or maybe an array, how to do?
Use split().
ReplyDeleteFor example:
var variables = delimited_string.split(/\s+/);
If you know it is separated by a single space, avoid using a regular expression with the following:
var variables = delimited_string.split(' ');
Got it: I use String.split(pattern)
ReplyDeletevar str = "I am confused".split(/\s/g)