How to split two arrays based on js

how is "/ audit;icon" based; split into"/ audit","icon"

May.19,2022

let arr ='/ audit;icon'.split (';')
arr is ['/ audit', 'icon']


"/audit;icon".split(';').join(',');
"/audit;icon".replace(/;/g,',');

let auditIcon = "/audit;icon";
let arr = auditIcon.split(';')
console.log(arr);

you can copy to the console to view
arr [0] is / audit
arr [1] is icon


arr = [/audit;icon]
arr.join("").split(";")

I hope I can help you


"/audit;icon".split(';')
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3e2a9-2b755.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3e2a9-2b755.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?