165
rated 0 times
[
168]
[
3]
/ answers: 1 / hits: 18228
/ 9 Years ago, sun, august 16, 2015, 12:00:00
I have this JavaScript:
var str = abcdefoihewfojias.split('');
for (var i = 0; i < str.length; i++) {
var xp = str[i] = |;
}
alert( str.join() );
I aim to replace every fourth letter in the string abcdefoihewfojias
with |
, so it becomes abc|efo|....etc
,but I do not have a clue how to do this.
More From » string