Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // IIFE to sum all numbers up to a limit.
- // https://en.wikipedia.org/wiki/1_%2B_2_%2B_3_%2B_4_%2B_%E2%8B%AF
- // In this case, the limit is 100:
- (function(N){ return ( N * ( N+1 )) / 2;})(100);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement