js explode equivalent
//Loading the variable
var mystr = '0000000020C90037:TEMP:data';
//Splitting it with : as the separator
var myarr = mystr.split(":");
//Resulting array structure
myarr = ['0000000020C90037', 'TEMP', 'data'];
js explode equivalent
//Loading the variable
var mystr = '0000000020C90037:TEMP:data';
//Splitting it with : as the separator
var myarr = mystr.split(":");
//Resulting array structure
myarr = ['0000000020C90037', 'TEMP', 'data'];
javascript explode
//split into array of strings.
var str = "Well, how, are , we , doing, today";
var res = str.split(",");
string split javascript
var myString = "An,array,in,a,string,separated,by,a,comma";
var myArray = myString.split(",");
/*
*
* myArray :
* ['An', 'array', 'in', 'a', 'string', 'separated', 'by', 'a', 'comma']
*
*/
string to array javascript
const string = "Hello!";
console.log([...string]); // ["H", "e", "l", "l", "o", "!"]
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us