Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function forLoopTest() {
- let some_sum = 0
- for (i = 1; i < 11; i++) {
- if (i % 2 === 0) {
- some_sum += i
- }
- }
- console.log(some_sum)
- }
- forLoopTest()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement