Latihan 1 dari materi Kenapa Performance Penting di Performance — praktek dengan editor kode interaktif, test case otomatis, dan hint terpandu. Langsung jalan di browser.
Buat fungsi calculateLoadImpact(loadTimeMs) yang menghitung estimasi bounce rate berdasarkan load time.
Aturan:
"excellent" (bounce rate < 10%)"acceptable" (bounce rate 10-30%)"poor" (bounce rate 30-50%)5000ms: return
"critical"(bounce rate > 50%)