Power of Two

# Introduction In this challenge, we'll write a function named `isPowerOfTwo` that takes an integer `n` as input and checks if it is a power of two. If `n` is a power of two, the function will return `true`; otherwise, it will return `false`. We'll need to write our code within the `isPowerOfTwo` function provided in the `isPowerOfTwo.js` file and export it to guarantee successful submission.

|60 : 00

Click the virtual machine below to start practicing