<script> const getPersistence = (num, i = 0)=> (num = num > 9 ? (i++,Array.from(num.toString()).reduce((a,b) => a * b)) : 0, num > 9 ? getPersistence(num, i) : i); document.write(getPersistence(39)) </script>