Block scope II - if statement

Having a hard time with the if statement. I keep getting an error: "Does the if statement check if region is equal to ‘The Arctic’? TIA

const visibleLightWaves = () => {
let lightWaves = ‘Moonlight’;
let region = ‘The Artic’
if (region = ‘The Artic’) {




Check your spelling in the code strings.

Oh brother! I didn’t even see that! Thanks mtf!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.