j
.eslintcache
в папках проекта не валяется?Size: a a a
j
.eslintcache
в папках проекта не валяется?IS
Д
А
Δ
Δ
А
get: function(){
console.log('ты опять опечатался, долбоеб');
}
Δ
А
А
Δ
Δ
А
IS
"вот так"
'вот так'
IS
Е
multiples WUB should be replaced by only 1 space: expected 'A B C' to equal 'A B C'
но если я меняю в (*) ' ' на '1', то WUB should be replaced by 1 space: expected 'A1B1C' to equal 'A B C'
то есть '1' добавляется 1 раз, а пробел несколько раз, почему?function songDecoder(song){
let wub = 'WUB'
let str = song
let i = 0
while (i < str.length - 2) {
if (str.indexOf(wub) !== -1) {
i = str.indexOf(wub)
str = str.slice(0, i) + ' ' + str.slice(i+3) (*)
}
else i = str.length
}
return str
}
А
IS
j