v2.5.2
Giriş yap

Bu neden çalışmadı

amet
284 defa görüntülendi

let scr = 'He earns 5000 euro from salary per month, 10000 euro annual bonus, 15000 euro online courses per month.'

        kume = scr.match(/\d+/g)
        let yeni = [ ]
        yeni.push(...kume)
        let total = []
        yeni.forEach(number => total += number + ",")
        sonkume = total+0
        console.log(sonkume)
arduinoturkbatu
382 gün önce

Kodu kopyalayıp denedim. 5000,10000,15000,0 sonucu çıkıyor. Kodun çalıştığını söyleyebilirim.
Eğer ne yapmak istediğini söylersen daha fazla yardımcı olabilirim.