Mark As Completed Discussion

However, JavaScript only hoists declarations, not initializations. So the = 25 part is NOT hoisted alongside, thus numOfBeers is undefined when console.log('I have this many beers: ' + numOfBeers); is first run.

Complexity Of Final Solution

Complexity of Final Solution

O(1) constant time & space complexity, this is a knowledge question!