i have the function:
//this function takes two params, a string and then the delimiter where the string is to be split up
function substringSplit(str, del){
var str;
var del;
for(var i=0;i<str.length;i++){
if(!str[i]==del){
var res = str[i];
console.log(res);
}
}
and what i am trying to achieve is splitting up a string e.g "the house is there" with a delimiter i.e " ", however my code isnt doing this properly!
does any one have any suggestions?
ps the idea is to not use another functions i.e split().
