how to convert the following setInterval() to requestAnimationFrame()?
Below is a simple working setInterval model that I'm using.
$(document).ready(function() {
    $("#add").click(function() {
         $('#result').html(
             (parseFloat($('#numA').val()) + 
              parseFloat($('#numB').val())).toString()
         );
    });
    setInterval(function () {$("#add").click()}, 1000);
});
I've seen one that requires loop (game loop), but my code isn't about gaming. It's about parsing strings.
The documentation is a bit complicated. I've tried some trial-errors, but no success so far.
Thank you for any input.
 
    