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
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.
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.
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:
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.)
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.
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.
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!.