Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

var logNums = function(num) {};

var logNums = function(num) {
    for (let i = 1; i <= num; i++) {
        console.log(i);
    }
};
 
PREVIOUS NEXT
Tagged: #var #logNums
ADD COMMENT
Topic
Name
9+5 =