JAVASCRIPT
scope 예문
Made Project
2020. 6. 8. 17:02
const logVisibleLightWaves = () => {
let lightWaves = 'Moonlight';
let region = 'The Arctic';
// Add if statement here:
if(region==='The Arctic'){
let lightWaves = "Northern Lights"
console.log(lightWaves);
};
console.log(lightWaves);
};
logVisibleLightWaves();