Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function evenPowersOf2(input) {
- let n = Number(input[0]);
- for (let i = 0; i <= n; i += 2) {
- console.log(Math.pow(2, i));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement