Javascript – Simple For Loop Examples
These are some examples of simple for loop challenges and exercises I did for fun. // Print ‘hello’ the string vertically var str = ‘hello’; for(var count = 0; count < str.length; count++) { console.log(str[i]) } // print all numbers between -10 and 19 for(var i = -10; i < 20; i++) { console.log(i) }…