Power of 2
Any hints of how to make this function print out an array of values like [1,3,9] instead of [3^0, 3^1, 3^2]. I'm sure it's simple, but I've gone down a rabbit hole trying to figure out what to do. Would I use something like reduce? Or would it be changing line 5 to push something different?
Thanks for everyone's patience?