Console bugs please fix it

Tell us what’s happening:

console bugs
there is many bugs in the console please fix it

Your code so far

const fccSentence = "freeCodeCamp is a great place to learn web development.";

console.log("Here are some examples of the includes() method:");

// User Editable Region
const hasFreeCodeCamp = fccSentence.includes("freeCodeCamp");

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/157.0.0.0 Safari/537.36

Challenge Information:

Build a String Inspector - Step 3

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/workshop-string-inspector/68e6172875008fea742a63c9.md at main · freeCodeCamp/freeCodeCamp · GitHub

please describe the bug you found

the bug is exactly in the variable declaration. When I write a simple variable, for example a string, it works normally. But when I write, for example this: “const hasLowercaseFCC = fccSentence.includes(“freecodecamp”);” or “const platform = message.slice(11, 23);”, the console returns this message: “You should assign the result of message.slice(11, 23) to your platform variable.”

this is not step 3 anymore, please if you need help with a different step create a topic for that step

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Help button located on the challenge.

The Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

At least check it out, and you’ll see that the bug is in the console, not in my code.

The console seems working fine, it shows the failed tests and it shows the lines from the console.logs

are you saying a test is failing that should not fail? please post your code, we can’t debug a screenshot

const fccSentence = “freeCodeCamp is a great place to learn web development.”;

console.log(“Here are some examples of the includes() method:”);

const hasFreeCodeCamp = fccSentence.includes(“freeCodeCamp”);

console.log(`fccSentence.includes(“freeCodeCamp”) returns ${hasFreeCodeCamp} because the word “freeCodeCamp” is in the sentence.`);

const hasJavaScript = fccSentence.includes(“JavaScript”);

console.log(`fccSentence.includes(“JavaScript”) returns ${hasJavaScript} because the word “JavaScript” is not in the sentence.`);

const hasLowercaseFCC = fccSentence.includes(“freecodecamp”);

console.log(`fccSentence.includes(“freecodecamp”) returns ${hasLowercaseFCC} because includes is case-sensitive.`);

const message = “Welcome to freeCodeCamp!”;

console.log(“Here are some examples of the slice() method:”);

const platform = message.slice(11, 23);

And sometimes you write a variable correctly, and it doesn’t recognize it, with many bugs around variable problems.

I can’t complete these tasks because of this bug.

Your solution works from my end. Please try one of the following steps to move forward.

Click on the “Restart Step” button and force a refresh of your page with CTRL + F5 then try to paste the code in again.

or - Try the step in incognito or private mode.

or - Disable any/all extensions that interface with the freeCodeCamp website (such as Dark Mode, Ad Blockers, or Spellcheckers), and set your browser zoom level to 100%. Both of these factors can cause tests to fail erroneously.

or - Ensure your browser is up-to-date or try a different browser.

I hope one of these will work for you.

next time you post code please post it properly formatted

There are two ways you can format your code to make it easier to read and test:

  1. After you copy/paste your code into the editor, select it by dragging your cursor over it then click the (</>) button in the toolbar to automatically wrap your code in backticks. (You can click on the animated demo image below to enlarge it.)

  1. Manually add three backticks on a new line above your code and on a new line after your code. Note that a backtick is NOT the same as a single quote('). To find the backtick key on your keyboard, see this post.

To see changes to your post as you make them, you can click the (M+) button on the toolbar to bring up the rich text editor:

I have tried all the solutions you suggested, yet the issue persists. I suggest that you try completing these exercises as a student on this platform, and you might experience the same problem.

I tried, the code passes

Yes, it works on mobile apps, but it doesn’t work in a computer browser. I formatted my PC today, so all settings and browsers are fresh, yet the same problem persists.

there must be something related to which browser you are using maybe

would you mind going to this and providing the user agent for each of the browsers you have tried? What is my user agent? - WhatIsMyBrowser.com

for example


this is mine Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/157.0.0.0 Safari/537.36

my user agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/157.0.0.0 Safari/537.36

and you don’t have browser extensions? have you tried in a guest profile or private window?

No, I haven’t added anything, yet everything is running smoothly now. I’m not sure if you fixed the issue, but the previous errors are resolved. Thanks for your time!.

it was something going wrong in your browser, there wasn’t a deployment or anything in the meantime