Basic JavaScript - Global vs. Local Scope in Functions

“run the test” doesnt do anything. ive exercised all other options and believe my code is correct but nothing is happening. please help, this happens at least once a day through my freecodecamp life

Your code so far

// Setup
const outerWear = "T-Shirt";

function myOutfit() {
  // Only change code below this line
const outerWear = "sweater";
  // Only change code above this line
  return outerWear;


Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14989.107.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Basic JavaScript - Global vs. Local Scope in Functions

Link to the challenge:

when i click on “run the test” absolutely nothing happens. the button changes color when i hover over it, when clicked, nothing happens at all. I have tried to use the shortcut “CTRL + Enter” and nothing happens when trying that too.

sorry, I am on google chrome

sorry for the confusion, Im on a pixelbook using the google chrome browser

Ive attatched a screen capture. If you prefer copy/paste let me know

after clearing the console and attempting to run the test, this is what im getting. I will check to see if any 3rd party extensions are running.

heres my extensions, unfortunately I cannot disable some of them because I am on a company provided laptop. Should I try on my personal computer?

Sorry for the late reply.

Sounds more like an issue unrelated to freeCodeCamp. I don’t see it having anything to do with these specific challenge tests as they are just simple string compares.

If the issue was consistent it might be some browser management policies or other restrictions but with it happening intermittently like that it sounds more like a network issue.

When it happens reset the challenge and do a hard refresh Shift + F5 to make sure you are re-downloading everything.

You can also try opening the Network tab in the dev tools and refresh again with it open to see if anything is being blocked. Check the “disable cache” checkbox as well (on the Network tab).

thank you to both of you. It worked after closing the browser completely

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