Reversing digit of previous two terms and adding them
let x = reversDigits ( first ) ; let y = reversDigits ( second ) ; document . write ( x + y + " " ) ; let temp = second ; second = x + y ; first = temp ; } } }