Automatically Doing the exercise without user input


#1

TL;DR: When I press run, the lesson is auto-completed even though I did nothing.

https://www.codecademy.com/courses/learn-javascript-scope/lessons/scope/exercises/block-scope-ii?action=lesson_resume&course_redirect=introduction-to-javascript

The code just auto-fills… IDK, I think this is a bug, and I’m reporting it to the Devs.
It autofills the code.


const visibleLightWaves = () => {
  let lightWaves = 'Moonlight';
  let region = 'The Arctic';
    if (region === 'The Arctic') {
      let lightWaves = 'Northern Lights';
      console.log(lightWaves);  
    }
  console.log(lightWaves);
};
visibleLightWaves();



#2

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