I have the following URL queryString index.html?cars=honda+nissan&price=90+60+70
and need to remove all the characters =, +, &
. When I chain the split it returns split is not a function
Desired output;
honda
nissan
90
60
70
JS:
const urlSearch = window.location.search;
const param = urlSearch.split('=')[1].split('&');