Challenge Comment your JavaScript Code has an issue.
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
// d regularly add comments to clarify the function of parts of your code. Good commenting can help communicate the intent of your code鈥攂oth for oth
/* d regularly add comments to clarify the function of parts of your code. Good commenting can help communicate the intent of your code鈥攂oth for oth */
Hi @tsalexey544
The issue tracker is for reporting bugs only. If this is a request for help with a challenge, please use the help chat room or try looking through the forum for help with a specific challenge.
If this is the case, please close this issue.
Happy Coding.
_Automatic update by Var.CI_
it appears that the test is not allowing word function
This is intresting ! :+1: @ivantedja you are correct. It appears this has occurred due to this line in detect-unsafe-code-stream.js of commonFramework
It appears , currently the test checks if you have a word function in the code it must be a function declaration. The fun part is, not only this challenge every challenge is failing even for a valid use of word function. I suggest either we modify the exception to say Error: SyntaxError: Unsafe or unfinished function declaration. use of word function is not allowed in content for safety reasons. or we improvise the regular expression to detect such cases.
The message isn't too bad as-is in my opinion. It's just that at this point in the curriculum, campers might not know what a function is. What do others think? cc@FreeCodeCamp/issue-moderators
We should suggest in some way that use of word function might be causing the issue.
I had a PR somewhere for this that was reverted and I never got round to re submitting it. I'll dig it out tonight
Most helpful comment
I had a PR somewhere for this that was reverted and I never got round to re submitting it. I'll dig it out tonight