Block scope II - if statement


#1

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’) {

}

console.log(lightWaves);
};

visibleLightWaves();


#2

Check your spelling in the code strings.


#3

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


#4

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