Task of Challenge #07/54
Calculate the sum of odd numbers greater than 9 and less than 30 a for-loop
.
Solution
Explanation
To accomplish our task, we should remember challenge #02 because back then, the task was to print out every odd number below 99. That means we create a for loop with an increment of 2 after each iteration to get only odd numbers when starting with an odd number. In our case with 11.
Remembering challenge #05 makes us also happy again. There we had the task to create the sum of the numbers from 1 to 24. The same concept applies to this task. We add up every odd number above 9 and below 30 to a sum.
After the loop has finished, we print it out to the console:

Follow me on Instagram and don’t miss the latest Challenge!
https://www.instagram.com/arnold.code/
Gather more Knowledge about JavaScript?
Here are two pre-picked and high quality Medium articles for you.
Quick 3-Minute Guide for the Monday Morning about https://t.co/thEjiQhZR6() @JS_PlainEnglish https://t.co/thEjiQhZR6() https://t.co/Fg4ky3xvn9 #javascript #learning #coding #Frontend #Developer #programmer #Guide #tutorial #Fastlane #QuickHits #easyaccess #learntocode
— ArnoldCode (@ArnoldAbrahamP1) March 29, 2021
Document object model Free DOM Guide for everyone!https://t.co/yjO6OMy3uy#HTML #html5 #htmlcss #htmlcode #htmlemail #htmlcoding #medium #tutorial #Tutorials #WritingCommunity #webdesign #website #web #webdesigner #webdevelopment #WebDeveloper #code #coder #CodersTeach #coder
— ArnoldCode (@ArnoldAbrahamP1) December 23, 2020