Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

do while loop js

    var i = 1;
        var msg = '';

        while(i < 10) {
            msg += i + ' x 5 = ' + (i + 5) + '<br />';
            i++;
        }

        document.getElementById('answer').innerHTML = msg;
Source by medium.com #
 
PREVIOUS NEXT
Tagged: #loop #js
ADD COMMENT
Topic
Name
3+6 =