Question:
Challenge has an issue. User Agent is: <codeMozilla/5.0 (iPad; CPU OS 931 like Mac OS X) AppleWebKit/601.1 (KHTML, like Gecko) CriOS/51.0.2704.64 Mobile/13E238 Safari/601.1.46</code. Please describe how to reproduce this issue, and include links to screenshots if possible. My code:
Looks like the test is looking for the var declaration and operation on the same line.
I would like to work on this.
cool! Please, check our and if you need any assistance reach out to the .

"description": [ "Compare and update inventory stored in a 2d array against a second 2d array of a fresh delivery. Update current inventory item quantity, and if an item cannot be found, add the new item and quantity into the inventory array in alphabetical order." ], <del> "challengeSeed": "function inventory(arr1, arr2) {n    // All inventory must be accounted for or you're fired!rn    return arr1;rn}nn// Example inventory listsrnvar curInv = [rn    [21, 'Bowling Ball'],rn    [2, 'Dirty Sock'],rn    [1, 'Hair pin'],rn    [5, 'Microphone']rn];rnrnvar newInv = [rn    [2, 'Hair Pin'],rn    [3, 'Half-Eaten Apple'],rn    [67, 'Bowling Ball'],rn    [7, 'Toothpaste']rn];rnrninventory(curInv, newInv);", "tests": [ "expect(inventory([[21, 'Bowling Ball'], [2, 'Dirty Sock'], [1, 'Hair pin'], [5, 'Microphone']], [[2, 'Hair Pin'], [3, 'Half-Eaten Apple'], [67, 'Bowling Ball'], [7, 'Toothpaste']])).to.be.a('array');", "assert.equal(inventory([[21, 'Bowling Ball'], [2, 'Dirty Sock'], [1, 'Hair pin'], [5, 'Microphone']], [[2, 'Hair Pin'], [3, 'Half-Eaten Apple'], [67, 'Bowling Ball'], [7, 'Toothpaste']]).length, 6);", "assert.deepEqual(inventory([[21, 'Bowling Ball'], [2, 'Dirty Sock'], [1, 'Hair pin'], [5, 'Microphone']], [[2, 'Hair Pin'], [3, 'Half-Eaten Apple'], [67, 'Bowling Ball'], [7, 'Toothpaste']]), [[88, 'Bowling Ball'], [2, 'Dirty Sock'], [3, 'Hair pin'], [3, 'Half-Eaten Apple'], [5, 'Microphone'], [7, 'Toothpaste']]);", "assert.deepEqual(inventory([[21, 'Bowling Ball'], [2, 'Dirty Sock'], [1, 'Hair pin'], [5, 'Microphone']], []), [[21, 'Bowling Ball'], [2, 'Dirty Sock'], [1, 'Hair pin'], [5, 'Microphone']]);", "assert.deepEqual(inventory([], [[2, 'Hair Pin'], [3, 'Half-Eaten Apple'], [67, 'Bowling Ball'], [7, 'Toothpaste']]), [[2, 'Hair Pin'], [3, 'Half-Eaten Apple'], [67, 'Bowling Ball'], [7, 'Toothpaste']]);", "assert.deepEqual(inventory([[0, 'Bowling Ball'], [0, 'Dirty Sock'], [0, 'Hair pin'], [0, 'Microphone']], [[1, 'Hair Pin'], [1, 'Half-Eaten Apple'], [1, 'Bowling Ball'], [1, 'Toothpaste']]), [[1, 'Bowling Ball'], [1, 'Dirty Sock'], [1, 'Hair pin'], [1, 'Half-Eaten Apple'], [1, 'Microphone'], [1, 'Toothpaste']]);" </del> <ins> "challengeSeed": "function inventory(arr1, arr2) {n    // All inventory must be accounted for or you're fired!rn    return arr1;rn}nn// Example inventory listsrnvar curInv = [rn    [21, 'Bowling Ball'],rn    [2, 'Dirty Sock'],rn    [1, 'Hair Pin'],rn    [5, 'Microphone']rn];rnrnvar newInv = [rn    [2, 'Hair Pin'],rn    [3, 'Half-Eaten Apple'],rn    [67, 'Bowling Ball'],rn    [7, 'Toothpaste']rn];rnrninventory(curInv, newInv);", "tests": [ "expect(inventory([[21, 'Bowling Ball'], [2, 'Dirty Sock'], [1, 'Hair Pin'], [5, 'Microphone']], [[2, 'Hair Pin'], [3, 'Half-Eaten Apple'], [67, 'Bowling Ball'], [7, 'Toothpaste']])).to.be.a('array');", "assert.equal(inventory([[21, 'Bowling Ball'], [2, 'Dirty Sock'], [1, 'Hair Pin'], [5, 'Microphone']], [[2, 'Hair Pin'], [3, 'Half-Eaten Apple'], [67, 'Bowling Ball'], [7, 'Toothpaste']]).length, 6);", "assert.deepEqual(inventory([[21, 'Bowling Ball'], [2, 'Dirty Sock'], [1, 'Hair Pin'], [5, 'Microphone']], [[2, 'Hair Pin'], [3, 'Half-Eaten Apple'], [67, 'Bowling Ball'], [7, 'Toothpaste']]), [[88, 'Bowling Ball'], [2, 'Dirty Sock'], [3, 'Hair Pin'], [3, 'Half-Eaten Apple'], [5, 'Microphone'], [7, 'Toothpaste']]);", "assert.deepEqual(inventory([[21, 'Bowling Ball'], [2, 'Dirty Sock'], [1, 'Hair Pin'], [5, 'Microphone']], []), [[21, 'Bowling Ball'], [2, 'Dirty Sock'], [1, 'Hair Pin'], [5, 'Microphone']]);", "assert.deepEqual(inventory([], [[2, 'Hair Pin'], [3, 'Half-Eaten Apple'], [67, 'Bowling Ball'], [7, 'Toothpaste']]), [[67, 'Bowling Ball'], [2, 'Hair Pin'], [3, 'Half-Eaten Apple'], [7, 'Toothpaste']]);", "assert.deepEqual(inventory([[0, 'Bowling Ball'], [0, 'Dirty Sock'], [0, 'Hair Pin'], [0, 'Microphone']], [[1, 'Hair Pin'], [1, 'Half-Eaten Apple'], [1, 'Bowling Ball'], [1, 'Toothpaste']]), [[1, 'Bowling Ball'], [0, 'Dirty Sock'], [1, 'Hair Pin'], [1, 'Half-Eaten Apple'], [0, 'Microphone'], [1, 'Toothpaste']]);" </ins> ] } ]


Question:
Challenge has an issue. User Agent is: <codeMozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.75 Safari/537.36</code. Please describe how to reproduce this issue, and include links to screenshots if possible. My code:
closing as related to . Happy coding!
thanks!
thanks a lot !!

"description": [ "Compare and update inventory stored in a 2d array against a second 2d array of a fresh delivery. Update current inventory item quantity, and if an item cannot be found, add the new item and quantity into the inventory array in alphabetical order." ], <del> "challengeSeed": "function inventory(arr1, arr2) {n    // All inventory must be accounted for or you're fired!rn    return arr1;rn}nn// Example inventory listsrnvar curInv = [rn    [21, 'Bowling Ball'],rn    [2, 'Dirty Sock'],rn    [1, 'Hair pin'],rn    [5, 'Microphone']rn];rnrnvar newInv = [rn    [2, 'Hair Pin'],rn    [3, 'Half-Eaten Apple'],rn    [67, 'Bowling Ball'],rn    [7, 'Toothpaste']rn];rnrninventory(curInv, newInv);", "tests": [ "expect(inventory([[21, 'Bowling Ball'], [2, 'Dirty Sock'], [1, 'Hair pin'], [5, 'Microphone']], [[2, 'Hair Pin'], [3, 'Half-Eaten Apple'], [67, 'Bowling Ball'], [7, 'Toothpaste']])).to.be.a('array');", "assert.equal(inventory([[21, 'Bowling Ball'], [2, 'Dirty Sock'], [1, 'Hair pin'], [5, 'Microphone']], [[2, 'Hair Pin'], [3, 'Half-Eaten Apple'], [67, 'Bowling Ball'], [7, 'Toothpaste']]).length, 6);", "assert.deepEqual(inventory([[21, 'Bowling Ball'], [2, 'Dirty Sock'], [1, 'Hair pin'], [5, 'Microphone']], [[2, 'Hair Pin'], [3, 'Half-Eaten Apple'], [67, 'Bowling Ball'], [7, 'Toothpaste']]), [[88, 'Bowling Ball'], [2, 'Dirty Sock'], [3, 'Hair pin'], [3, 'Half-Eaten Apple'], [5, 'Microphone'], [7, 'Toothpaste']]);", "assert.deepEqual(inventory([[21, 'Bowling Ball'], [2, 'Dirty Sock'], [1, 'Hair pin'], [5, 'Microphone']], []), [[21, 'Bowling Ball'], [2, 'Dirty Sock'], [1, 'Hair pin'], [5, 'Microphone']]);", "assert.deepEqual(inventory([], [[2, 'Hair Pin'], [3, 'Half-Eaten Apple'], [67, 'Bowling Ball'], [7, 'Toothpaste']]), [[2, 'Hair Pin'], [3, 'Half-Eaten Apple'], [67, 'Bowling Ball'], [7, 'Toothpaste']]);", "assert.deepEqual(inventory([[0, 'Bowling Ball'], [0, 'Dirty Sock'], [0, 'Hair pin'], [0, 'Microphone']], [[1, 'Hair Pin'], [1, 'Half-Eaten Apple'], [1, 'Bowling Ball'], [1, 'Toothpaste']]), [[1, 'Bowling Ball'], [1, 'Dirty Sock'], [1, 'Hair pin'], [1, 'Half-Eaten Apple'], [1, 'Microphone'], [1, 'Toothpaste']]);" </del> <ins> "challengeSeed": "function inventory(arr1, arr2) {n    // All inventory must be accounted for or you're fired!rn    return arr1;rn}nn// Example inventory listsrnvar curInv = [rn    [21, 'Bowling Ball'],rn    [2, 'Dirty Sock'],rn    [1, 'Hair Pin'],rn    [5, 'Microphone']rn];rnrnvar newInv = [rn    [2, 'Hair Pin'],rn    [3, 'Half-Eaten Apple'],rn    [67, 'Bowling Ball'],rn    [7, 'Toothpaste']rn];rnrninventory(curInv, newInv);", "tests": [ "expect(inventory([[21, 'Bowling Ball'], [2, 'Dirty Sock'], [1, 'Hair Pin'], [5, 'Microphone']], [[2, 'Hair Pin'], [3, 'Half-Eaten Apple'], [67, 'Bowling Ball'], [7, 'Toothpaste']])).to.be.a('array');", "assert.equal(inventory([[21, 'Bowling Ball'], [2, 'Dirty Sock'], [1, 'Hair Pin'], [5, 'Microphone']], [[2, 'Hair Pin'], [3, 'Half-Eaten Apple'], [67, 'Bowling Ball'], [7, 'Toothpaste']]).length, 6);", "assert.deepEqual(inventory([[21, 'Bowling Ball'], [2, 'Dirty Sock'], [1, 'Hair Pin'], [5, 'Microphone']], [[2, 'Hair Pin'], [3, 'Half-Eaten Apple'], [67, 'Bowling Ball'], [7, 'Toothpaste']]), [[88, 'Bowling Ball'], [2, 'Dirty Sock'], [3, 'Hair Pin'], [3, 'Half-Eaten Apple'], [5, 'Microphone'], [7, 'Toothpaste']]);", "assert.deepEqual(inventory([[21, 'Bowling Ball'], [2, 'Dirty Sock'], [1, 'Hair Pin'], [5, 'Microphone']], []), [[21, 'Bowling Ball'], [2, 'Dirty Sock'], [1, 'Hair Pin'], [5, 'Microphone']]);", "assert.deepEqual(inventory([], [[2, 'Hair Pin'], [3, 'Half-Eaten Apple'], [67, 'Bowling Ball'], [7, 'Toothpaste']]), [[67, 'Bowling Ball'], [2, 'Hair Pin'], [3, 'Half-Eaten Apple'], [7, 'Toothpaste']]);", "assert.deepEqual(inventory([[0, 'Bowling Ball'], [0, 'Dirty Sock'], [0, 'Hair Pin'], [0, 'Microphone']], [[1, 'Hair Pin'], [1, 'Half-Eaten Apple'], [1, 'Bowling Ball'], [1, 'Toothpaste']]), [[1, 'Bowling Ball'], [0, 'Dirty Sock'], [1, 'Hair Pin'], [1, 'Half-Eaten Apple'], [0, 'Microphone'], [1, 'Toothpaste']]);" </ins> ] } ]


Question:
<!-- FreeCodeCamp Issue Template --<!-- NOTE: ISSUES ARE NOT FOR CODE HELP - Ask for Help at --<!-- Please provide as much detail as possible for us to fix your issue --<!-- Remove any heading sections you did not fill out --<!-- Insert link to challenge below -- <!-- Describe below when the issue happens and how to reproduce it --I am currently using Google chrome and I have been trying to figure out why my location could not be found when I copied the exact code from FCC and placed it in After a week of fighting I asked for help and I learn that I had to use https:// so I can find my location. The second issue is that when I tried to pass this location to the Weather API it would not work, so I asked the community again and I learn that the FCC given locator will not work when we pass the location to the weather API. Could you please add a side note to the other codes as a heads up so that they don't end up beating their computer with a baseball bat? <!-- Describe your workspace in which you are having issues--- Browser Name, Version: Google Chrome Version 51.0.2704.84 m Operating System: Windows 10 Mobile, Desktop, or Tablet: Desktop <!-- Add a screenshot of your issue --
I agree that the project should have a disclaimer about this. There are many questions in the chat with users providing working code that won't work in Chrome because of the update.
Which code does not work? I'm using chrome and the example app works for me.
Chrome 50 disallows geolocation in an insecure context (http). This means that the site has to work over https. However, the free version of openweatherapi does not allow https. This creates a problem, as mixed security contexts are also not allowed in Chrome.
We are not able to use the geolocation code and pass it to the weather api. It will not accept. The geolocation code works fine by itself but we are not able to get the location when we pass the latitude and longitude to the weather api.
So perhaps the Open Weather API should no longer be recommended? Although I don't know of one that uses https, I just noticed my old weather project no longer works either :)
Or there could be a a note showing an alternative for finding the current location.
As a follow-up, I found a few APIs (Dark Sky and Yahoo Weather!) that have SSL in their API URL and could potentially work in chrome with HTML5. The Dark Sky API worked temporarily with "" prepended but stopped working soon after (probably due to cross-origin issues). It also doesn't include the city/country as part of its JSON which is a nice feature that OpenWeather has. I didn't try Yahoo Weather! because I didn't find it to be a good option for learning APIs. It essentially provides the code for you and requires that you put their icon on it as attribution. There may be others, but I was unable to find any that seemed like reputable (reliable, long-term) sites. Thus, I would recommend that the challenge simply acknowledges the Chrome issue and points users to use ip location instead of HTML5. I know this doesn't jibe with the earlier jQuery challenge where they use HTML5 location, but it seems to be the best route at the moment for it to work in Chrome.
Dark Sky has header issue. I used http://ip- to get the info I needed to work with the open weather map API. I will try and add a disclaimer to the challenge and put in for a pull request.
Glad I found this issue, I thought I was going mad! I now see the issue was with Open Weather's http (insecure) for free accounts. Just found the : Even though the free access is only 6months, which means the app won't work after that, it should suffice for the challenge. Can the FCC core team kindly update the instructions?
This is a broken challenge that should be fixed with a disclaimer so people aren't wasting their time.
I am working on creating an SSL proxy for OpenWeatherMap. Advising the use of this proxy would solve the issue. It's also incredibly easy to set up in AWS if FCC wants to host it themselves.
cool, I hadn't thought of that. Let us know how it goes
is working now. Just use that instead of . It does a complete passthrough of everything at the /data/ path
Also I noticed someone merged a PR advising using DarkSky instead of OpenWeatherMap to Staging. Just needs to get pushed to Master and deployed
I ended up using Yahoo's YQL and pulled the data and then crossed it with the https images from openweather. I did find that I'd have some calls that returned 0 results so I just had it wait 15seconds and then retry. "*%20from%20weather.forecast%20where%20woeid%20in%20(("+lat+"%2C+"+lon+")%22)&format=json&diagnostics=true" Just change the lat and lon you pull from your browser.
Adding a workaround:
did this challenge ever get updated with a new service? The workaround doesn't solve the issue because Chrome doesn't allow HTML5 location calls over (it requires ). Since assumedly most campers are using Chrome, they run into the issue of not being able to get the api to return results on Chrome because the openweather API and wunderground API are and codepen won't allow mixed content to be served. Therefore, the suggested solution above of changing the challenge to use is the preferred solution since it allows calls and will therefore support Chrome's location requirements. I think at one point it was suggested this challenge may end up removed, but I could be wrong on that. All that to say, if the challenge stays, we should either: a) recommend ip-based location instead of HTML5 location if using chrome OR b) recommend a weather api that supports https and clarify that campers need to connect to codepen over I'm partial to choice because doesn't output the city/state based on longitude and latitude like openweather does.
Hi I am doing this challenge at the moment and either of the changes you recommended would help a lot. I spent most of the day getting my geolocation and weather api to work, jumping between HTTPS and HTTP. I finally got my codepen to work in HTTPS by using the wunderground api. I used an ajax request with the url The sites documentation says you must use HTTP but using HTTPS still return's the information.
Use yahoo's YQL for the weather data
I was working on Firefox so I didn't see the issue until a friend told me it wasn't working on his browser (Chrome). I lost a lot of time trying to retrieve APIs datas cause of the HTTPS/HTTP issue too. I finished my project so I didn't look for others API but I really think a warning on the exercice page would be great for future campers.
Why hasn't this been assigned for correction? Its a simple fix. Either remove the recommended API or alter the recommended API to one that is compliant with CodePen requirements. Having users go through the process of troubleshooting issues with the recommended API (recommended means it should work) will frustrate them. I imagine that you will continue to get Bug Reports on this until you make this simple fix.
Easier said than done. Please feel free to fork the pen, and use an alternate API if you are aware, share it here, we will be happy to fork it and update official pen. We share your frustration, but at the same time, need help in making this work under all conditions, as you may see if you go through the thread. Nevertheless thanks for your feedback.
I had this problem the other day while redoing some of my projects in React. I ended up finding this releases notes from google about Chrome: For more info: Also. the funny thing was that it worked for a while using OpenWeather then stopped working suddenly. I switched to Firefox to finish the project.
In the beta, this challenge is moved to the "take-home" projects so it's not required for a certificate. Having said that, I know this has been a long-time issue and having reread the user stories, I think we should recommend as it works over SSL. The reason I have hesitated to recommend it in the past is because it doesn't output the user location (city/state) as part of the API which is a nice feature of OpenWeather but it's not required by the user stories, only showing the weather is required. What do others think? I can make a PR soon if all agree.
Sure thing, but I would also update the current pen in that case so that while we release beta, this one is resolved and campers do not face the issue. Let me know, if you can get it working. I'll update the official pen.
Hey! I know that this is totally off topic, but I'm really new to this and dont know what to do next or where to go. Please Help!
Otherwise, a nice and simple "addition" would be, instead of suggesting to use use an IP tracker API. They are not as precise as the Location since they will track only your public IP, but we can add a note why it's meant to be like that. It conforms to the the challenge requirements and skills since use an API call; plus it's a nice "side" on web security and why not every data is always public and ready-to-use. Plus some of this library are open source with an extensive documentation. I like (and I've used it in node for a cloud project. But there's also
I finished my weather app a long time ago, and ran with this problem when I revisited my codepen because I'm planning on moving my code to a vps that will serve content over HTTPS. So while thinking about what other API to use, I realized I could try to accessing my codepen using HTTP instead of HTTPS, and it works. I'm not using geolocation though. I relied on another API (https) that gets the location based on the IP address. Thankfully codepen doesn't enforce HTTPS, which for security reasons should be the standard, but for this case it works. So a temporary solution can be to let campers know they need to use codepen over HTTP instead of HTTPS when working on this challenge, and make sure they share that same link. They should probably let users know somewhere in their page that the pen should be access using HTTP as well. All that's left for me to do is figure out how to make the API work for me in my https only portfolio site...
Hey there, why there's still no fix for this issue? Everyday many campers come to the chat having this issue. I would suggest using APIXU API. Can somebody take this?

"description": [ "Compare and update inventory stored in a 2d array against a second 2d array of a fresh delivery. Update current inventory item quantity, and if an item cannot be found, add the new item and quantity into the inventory array in alphabetical order." ], <del> "challengeSeed": "function inventory(arr1, arr2) {n    // All inventory must be accounted for or you're fired!rn    return arr1;rn}nn// Example inventory listsrnvar curInv = [rn    [21, 'Bowling Ball'],rn    [2, 'Dirty Sock'],rn    [1, 'Hair pin'],rn    [5, 'Microphone']rn];rnrnvar newInv = [rn    [2, 'Hair Pin'],rn    [3, 'Half-Eaten Apple'],rn    [67, 'Bowling Ball'],rn    [7, 'Toothpaste']rn];rnrninventory(curInv, newInv);", "tests": [ "expect(inventory([[21, 'Bowling Ball'], [2, 'Dirty Sock'], [1, 'Hair pin'], [5, 'Microphone']], [[2, 'Hair Pin'], [3, 'Half-Eaten Apple'], [67, 'Bowling Ball'], [7, 'Toothpaste']])).to.be.a('array');", "assert.equal(inventory([[21, 'Bowling Ball'], [2, 'Dirty Sock'], [1, 'Hair pin'], [5, 'Microphone']], [[2, 'Hair Pin'], [3, 'Half-Eaten Apple'], [67, 'Bowling Ball'], [7, 'Toothpaste']]).length, 6);", "assert.deepEqual(inventory([[21, 'Bowling Ball'], [2, 'Dirty Sock'], [1, 'Hair pin'], [5, 'Microphone']], [[2, 'Hair Pin'], [3, 'Half-Eaten Apple'], [67, 'Bowling Ball'], [7, 'Toothpaste']]), [[88, 'Bowling Ball'], [2, 'Dirty Sock'], [3, 'Hair pin'], [3, 'Half-Eaten Apple'], [5, 'Microphone'], [7, 'Toothpaste']]);", "assert.deepEqual(inventory([[21, 'Bowling Ball'], [2, 'Dirty Sock'], [1, 'Hair pin'], [5, 'Microphone']], []), [[21, 'Bowling Ball'], [2, 'Dirty Sock'], [1, 'Hair pin'], [5, 'Microphone']]);", "assert.deepEqual(inventory([], [[2, 'Hair Pin'], [3, 'Half-Eaten Apple'], [67, 'Bowling Ball'], [7, 'Toothpaste']]), [[2, 'Hair Pin'], [3, 'Half-Eaten Apple'], [67, 'Bowling Ball'], [7, 'Toothpaste']]);", "assert.deepEqual(inventory([[0, 'Bowling Ball'], [0, 'Dirty Sock'], [0, 'Hair pin'], [0, 'Microphone']], [[1, 'Hair Pin'], [1, 'Half-Eaten Apple'], [1, 'Bowling Ball'], [1, 'Toothpaste']]), [[1, 'Bowling Ball'], [1, 'Dirty Sock'], [1, 'Hair pin'], [1, 'Half-Eaten Apple'], [1, 'Microphone'], [1, 'Toothpaste']]);" </del> <ins> "challengeSeed": "function inventory(arr1, arr2) {n    // All inventory must be accounted for or you're fired!rn    return arr1;rn}nn// Example inventory listsrnvar curInv = [rn    [21, 'Bowling Ball'],rn    [2, 'Dirty Sock'],rn    [1, 'Hair Pin'],rn    [5, 'Microphone']rn];rnrnvar newInv = [rn    [2, 'Hair Pin'],rn    [3, 'Half-Eaten Apple'],rn    [67, 'Bowling Ball'],rn    [7, 'Toothpaste']rn];rnrninventory(curInv, newInv);", "tests": [ "expect(inventory([[21, 'Bowling Ball'], [2, 'Dirty Sock'], [1, 'Hair Pin'], [5, 'Microphone']], [[2, 'Hair Pin'], [3, 'Half-Eaten Apple'], [67, 'Bowling Ball'], [7, 'Toothpaste']])).to.be.a('array');", "assert.equal(inventory([[21, 'Bowling Ball'], [2, 'Dirty Sock'], [1, 'Hair Pin'], [5, 'Microphone']], [[2, 'Hair Pin'], [3, 'Half-Eaten Apple'], [67, 'Bowling Ball'], [7, 'Toothpaste']]).length, 6);", "assert.deepEqual(inventory([[21, 'Bowling Ball'], [2, 'Dirty Sock'], [1, 'Hair Pin'], [5, 'Microphone']], [[2, 'Hair Pin'], [3, 'Half-Eaten Apple'], [67, 'Bowling Ball'], [7, 'Toothpaste']]), [[88, 'Bowling Ball'], [2, 'Dirty Sock'], [3, 'Hair Pin'], [3, 'Half-Eaten Apple'], [5, 'Microphone'], [7, 'Toothpaste']]);", "assert.deepEqual(inventory([[21, 'Bowling Ball'], [2, 'Dirty Sock'], [1, 'Hair Pin'], [5, 'Microphone']], []), [[21, 'Bowling Ball'], [2, 'Dirty Sock'], [1, 'Hair Pin'], [5, 'Microphone']]);", "assert.deepEqual(inventory([], [[2, 'Hair Pin'], [3, 'Half-Eaten Apple'], [67, 'Bowling Ball'], [7, 'Toothpaste']]), [[67, 'Bowling Ball'], [2, 'Hair Pin'], [3, 'Half-Eaten Apple'], [7, 'Toothpaste']]);", "assert.deepEqual(inventory([[0, 'Bowling Ball'], [0, 'Dirty Sock'], [0, 'Hair Pin'], [0, 'Microphone']], [[1, 'Hair Pin'], [1, 'Half-Eaten Apple'], [1, 'Bowling Ball'], [1, 'Toothpaste']]), [[1, 'Bowling Ball'], [0, 'Dirty Sock'], [1, 'Hair Pin'], [1, 'Half-Eaten Apple'], [0, 'Microphone'], [1, 'Toothpaste']]);" </ins> ] } ]


Question: We need the remove the route /jobs from rendering. It's as simple as removing these two lines

"description": [ "Compare and update inventory stored in a 2d array against a second 2d array of a fresh delivery. Update current inventory item quantity, and if an item cannot be found, add the new item and quantity into the inventory array in alphabetical order." ], <del> "challengeSeed": "function inventory(arr1, arr2) {n    // All inventory must be accounted for or you're fired!rn    return arr1;rn}nn// Example inventory listsrnvar curInv = [rn    [21, 'Bowling Ball'],rn    [2, 'Dirty Sock'],rn    [1, 'Hair pin'],rn    [5, 'Microphone']rn];rnrnvar newInv = [rn    [2, 'Hair Pin'],rn    [3, 'Half-Eaten Apple'],rn    [67, 'Bowling Ball'],rn    [7, 'Toothpaste']rn];rnrninventory(curInv, newInv);", "tests": [ "expect(inventory([[21, 'Bowling Ball'], [2, 'Dirty Sock'], [1, 'Hair pin'], [5, 'Microphone']], [[2, 'Hair Pin'], [3, 'Half-Eaten Apple'], [67, 'Bowling Ball'], [7, 'Toothpaste']])).to.be.a('array');", "assert.equal(inventory([[21, 'Bowling Ball'], [2, 'Dirty Sock'], [1, 'Hair pin'], [5, 'Microphone']], [[2, 'Hair Pin'], [3, 'Half-Eaten Apple'], [67, 'Bowling Ball'], [7, 'Toothpaste']]).length, 6);", "assert.deepEqual(inventory([[21, 'Bowling Ball'], [2, 'Dirty Sock'], [1, 'Hair pin'], [5, 'Microphone']], [[2, 'Hair Pin'], [3, 'Half-Eaten Apple'], [67, 'Bowling Ball'], [7, 'Toothpaste']]), [[88, 'Bowling Ball'], [2, 'Dirty Sock'], [3, 'Hair pin'], [3, 'Half-Eaten Apple'], [5, 'Microphone'], [7, 'Toothpaste']]);", "assert.deepEqual(inventory([[21, 'Bowling Ball'], [2, 'Dirty Sock'], [1, 'Hair pin'], [5, 'Microphone']], []), [[21, 'Bowling Ball'], [2, 'Dirty Sock'], [1, 'Hair pin'], [5, 'Microphone']]);", "assert.deepEqual(inventory([], [[2, 'Hair Pin'], [3, 'Half-Eaten Apple'], [67, 'Bowling Ball'], [7, 'Toothpaste']]), [[2, 'Hair Pin'], [3, 'Half-Eaten Apple'], [67, 'Bowling Ball'], [7, 'Toothpaste']]);", "assert.deepEqual(inventory([[0, 'Bowling Ball'], [0, 'Dirty Sock'], [0, 'Hair pin'], [0, 'Microphone']], [[1, 'Hair Pin'], [1, 'Half-Eaten Apple'], [1, 'Bowling Ball'], [1, 'Toothpaste']]), [[1, 'Bowling Ball'], [1, 'Dirty Sock'], [1, 'Hair pin'], [1, 'Half-Eaten Apple'], [1, 'Microphone'], [1, 'Toothpaste']]);" </del> <ins> "challengeSeed": "function inventory(arr1, arr2) {n    // All inventory must be accounted for or you're fired!rn    return arr1;rn}nn// Example inventory listsrnvar curInv = [rn    [21, 'Bowling Ball'],rn    [2, 'Dirty Sock'],rn    [1, 'Hair Pin'],rn    [5, 'Microphone']rn];rnrnvar newInv = [rn    [2, 'Hair Pin'],rn    [3, 'Half-Eaten Apple'],rn    [67, 'Bowling Ball'],rn    [7, 'Toothpaste']rn];rnrninventory(curInv, newInv);", "tests": [ "expect(inventory([[21, 'Bowling Ball'], [2, 'Dirty Sock'], [1, 'Hair Pin'], [5, 'Microphone']], [[2, 'Hair Pin'], [3, 'Half-Eaten Apple'], [67, 'Bowling Ball'], [7, 'Toothpaste']])).to.be.a('array');", "assert.equal(inventory([[21, 'Bowling Ball'], [2, 'Dirty Sock'], [1, 'Hair Pin'], [5, 'Microphone']], [[2, 'Hair Pin'], [3, 'Half-Eaten Apple'], [67, 'Bowling Ball'], [7, 'Toothpaste']]).length, 6);", "assert.deepEqual(inventory([[21, 'Bowling Ball'], [2, 'Dirty Sock'], [1, 'Hair Pin'], [5, 'Microphone']], [[2, 'Hair Pin'], [3, 'Half-Eaten Apple'], [67, 'Bowling Ball'], [7, 'Toothpaste']]), [[88, 'Bowling Ball'], [2, 'Dirty Sock'], [3, 'Hair Pin'], [3, 'Half-Eaten Apple'], [5, 'Microphone'], [7, 'Toothpaste']]);", "assert.deepEqual(inventory([[21, 'Bowling Ball'], [2, 'Dirty Sock'], [1, 'Hair Pin'], [5, 'Microphone']], []), [[21, 'Bowling Ball'], [2, 'Dirty Sock'], [1, 'Hair Pin'], [5, 'Microphone']]);", "assert.deepEqual(inventory([], [[2, 'Hair Pin'], [3, 'Half-Eaten Apple'], [67, 'Bowling Ball'], [7, 'Toothpaste']]), [[67, 'Bowling Ball'], [2, 'Hair Pin'], [3, 'Half-Eaten Apple'], [7, 'Toothpaste']]);", "assert.deepEqual(inventory([[0, 'Bowling Ball'], [0, 'Dirty Sock'], [0, 'Hair Pin'], [0, 'Microphone']], [[1, 'Hair Pin'], [1, 'Half-Eaten Apple'], [1, 'Bowling Ball'], [1, 'Toothpaste']]), [[1, 'Bowling Ball'], [0, 'Dirty Sock'], [1, 'Hair Pin'], [1, 'Half-Eaten Apple'], [0, 'Microphone'], [1, 'Toothpaste']]);" </ins> ] } ]


Question:
<!-- FreeCodeCamp Issue Template --<!-- NOTE: ISSUES ARE NOT FOR CODE HELP - Ask for Help at --<!-- Please provide as much detail as possible for us to fix your issue --<!-- Remove any heading sections you did not fill out --<!-- Insert link to challenge below --<!-- Describe below when the issue happens and how to reproduce it --<!-- Describe your workspace in which you are having issues--- Browser Name, Version: Operating System: Mobile, Desktop, or Tablet: <!-- Add a screenshot of your issue --
I cant load all this information easily while working from my phone.
can you take a screenshot of what you're seeing? What challenges are you having issues with? And can you give more information about what kind of device (Android, iPhone, etc), and browser? The more information you can provide about your situation will help us diagnose the issue for you. Currently, we don't have much information to help you. I hope you understand.
I did submit that info, I thought at least. When it loaded the page to after I typed in everything, the info didn't transfer. But it was the find length of a string demo in the Javascript section. I used the to find the length of 8 as I am supposed to do, but when I run the testing says that I didn't use that method call. Drew On Jun 13, 2016 12:42 PM, "Eric Leung" wrote:
It was on an android note5 and the browser was chrome. On Jun 13, 2016 12:42 PM, "Eric Leung" wrote:
I can't reproduce your issue. When you have the chance, please post the code you used. It might aid in addressing the issue.
Closing as stale. Please reopen if this issue is legitimate!

"name": "Sorted Union", "difficulty": "2.07", "description": [ <del> "Write a function that takes two or more arrays and returns a new array of unique values sorted in order." </del> <ins> "Write a function that takes two or more arrays and returns a new array of unique values in the order of the original provided arrays.", "The unique numbers should be sorted by their original order, but the final array should not be sorted in numerical order.", "Check the assertion tests for examples." </ins> ], "challengeSeed": "function unite(arr) {n  return arr;rn}nnunite([1, 2, 3], [5, 2, 1, 4], [2, 1]);", "tests": [

"assert.deepEqual(inventory([[0, 'Bowling Ball'], [0, 'Dirty Sock'], [0, 'Hair pin'], [0, 'Microphone']], [[1, 'Hair Pin'], [1, 'Half-Eaten Apple'], [1, 'Bowling Ball'], [1, 'Toothpaste']]), [[1, 'Bowling Ball'], [1, 'Dirty Sock'], [1, 'Hair pin'], [1, 'Half-Eaten Apple'], [1, 'Microphone'], [1, 'Toothpaste']]);" ] } <del> ] </del>  No newline at end of file <ins> ] </ins>


Question:
Challenge has an issue. User Agent is: <codeMozilla/5.0 (Linux; Android 6.0.1; SM-G900W8 Build/MMB29M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.81 Mobile Safari/537.36</code. Please describe how to reproduce this issue, and include links to screenshots if possible. My code:
this is a known issue on Android . Try completing the challenge on a different device or on a desktop if you are able to. Closing as duplicate issue. Happy coding!
I AM coding on my phone so can't continue now..

"name": "Sorted Union", "difficulty": "2.07", "description": [ <del> "Write a function that takes two or more arrays and returns a new array of unique values sorted in order." </del> <ins> "Write a function that takes two or more arrays and returns a new array of unique values in the order of the original provided arrays.", "The unique numbers should be sorted by their original order, but the final array should not be sorted in numerical order.", "Check the assertion tests for examples." </ins> ], "challengeSeed": "function unite(arr) {n  return arr;rn}nnunite([1, 2, 3], [5, 2, 1, 4], [2, 1]);", "tests": [

"assert.deepEqual(inventory([[0, 'Bowling Ball'], [0, 'Dirty Sock'], [0, 'Hair pin'], [0, 'Microphone']], [[1, 'Hair Pin'], [1, 'Half-Eaten Apple'], [1, 'Bowling Ball'], [1, 'Toothpaste']]), [[1, 'Bowling Ball'], [1, 'Dirty Sock'], [1, 'Hair pin'], [1, 'Half-Eaten Apple'], [1, 'Microphone'], [1, 'Toothpaste']]);" ] } <del> ] </del>  No newline at end of file <ins> ] </ins>


Question:
The test case output is correct but it is not marked as correct in the test case results Browser Name, Version: both internet explorer 11 and chrome ver 51 Operating System: windows 10 Mobile, Desktop, or Tablet: laptop
The global Var permList had to be reset to [], then it works fine.
Please use the chat room for getting challenge related help. Happy Coding!

"name": "Sorted Union", "difficulty": "2.07", "description": [ <del> "Write a function that takes two or more arrays and returns a new array of unique values sorted in order." </del> <ins> "Write a function that takes two or more arrays and returns a new array of unique values in the order of the original provided arrays.", "The unique numbers should be sorted by their original order, but the final array should not be sorted in numerical order.", "Check the assertion tests for examples." </ins> ], "challengeSeed": "function unite(arr) {n  return arr;rn}nnunite([1, 2, 3], [5, 2, 1, 4], [2, 1]);", "tests": [

"assert.deepEqual(inventory([[0, 'Bowling Ball'], [0, 'Dirty Sock'], [0, 'Hair pin'], [0, 'Microphone']], [[1, 'Hair Pin'], [1, 'Half-Eaten Apple'], [1, 'Bowling Ball'], [1, 'Toothpaste']]), [[1, 'Bowling Ball'], [1, 'Dirty Sock'], [1, 'Hair pin'], [1, 'Half-Eaten Apple'], [1, 'Microphone'], [1, 'Toothpaste']]);" ] } <del> ] </del>  No newline at end of file <ins> ] </ins>


Question:
Challenge has an issue. User Agent is: <codeMozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36</code. Please describe how to reproduce this issue, and include links to screenshots if possible. My code:
There is an issue with your code. Please re-read the instructions. If you are still having problems, try the button under the button.
So what i will do
Please head over to .
You gotta set a border parameter, sir. You only specified what you want the border to do. You have to create the class within Css I believe. On Jun 22, 2016 12:38 AM, "Abdus Sami Patel" wrote:
Use the help button, that will take you to a dedicated help room at . Ask for help with your code. GitHub issues are not to be used for code reviews. HINT: Read the challenge instructions, you were asked to make a new CSS class
Or I could be direly wrong. Lol On Jun 22, 2016 12:41 AM, "Joshua Woods" wrote:

"name": "Sorted Union", "difficulty": "2.07", "description": [ <del> "Write a function that takes two or more arrays and returns a new array of unique values sorted in order." </del> <ins> "Write a function that takes two or more arrays and returns a new array of unique values in the order of the original provided arrays.", "The unique numbers should be sorted by their original order, but the final array should not be sorted in numerical order.", "Check the assertion tests for examples." </ins> ], "challengeSeed": "function unite(arr) {n  return arr;rn}nnunite([1, 2, 3], [5, 2, 1, 4], [2, 1]);", "tests": [

"assert.deepEqual(inventory([[0, 'Bowling Ball'], [0, 'Dirty Sock'], [0, 'Hair pin'], [0, 'Microphone']], [[1, 'Hair Pin'], [1, 'Half-Eaten Apple'], [1, 'Bowling Ball'], [1, 'Toothpaste']]), [[1, 'Bowling Ball'], [1, 'Dirty Sock'], [1, 'Hair pin'], [1, 'Half-Eaten Apple'], [1, 'Microphone'], [1, 'Toothpaste']]);" ] } <del> ] </del>  No newline at end of file <ins> ] </ins>


Question:
Challenge has an issue. User Agent is: <codeMozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36</code. Please describe how to reproduce this issue, and include links to screenshots if possible. My code: function timesFive(num){ return num * 5; } var answer = timesFive(5); // Example function minusSeven(num) { return num - 7; } var answer = minusSeven(7); // Only change code below this line
This has to do with how the challenge code and tests are run when a user clicks "Run Tests." In this case, the "tail" of the challenge attempts to call with an argument of if it is a valid function and returns the result to show the user what the output is for that input, and returns "timesFive is not a function" otherwise. However in many other challenges, the output will reflect the returned value of a call to the function if one is included at the end of the code, but this is not the case here. Even with the final line (with or without assignment to a variable) the output will display as correctly stated. The challenge tail should be reviewed to allow users to test their own values with their newly written function, as this is one of the first opportunities in the course for them to do so (with a function written from scratch). As assigning the returned value of the function to prevents the output from displaying, this should probably be removed from the example code also. It isn't really needed since is not subsequently used, and "Assignment with a Returned Value" is the aim of the following challenge anyway.
I agree with and since at this point in the curriculum, the campers don't have an idea to do a and see the results in the console, we should provide a way for them to see the results and understand what their code is doing as supposed to what it should do. See
I agree with too. So, how can we change the way the result is printed on output? What part of codebase prints the result of the student's code?
The code that does this is in . I agree. It should be modified a bit so it doesn't confuse the camper.
Would it be better rather than showing those strings, it showed the results of the function that they called? Example: timesFive(5), would result in them seeing the value of 25 in the code mirror?
This one is up for grabs.
How do we want to go about this?
+1
Some images to help understanding the problem:  With the following code:
I would like to work on this issue.
Hi How's your progress on this?
I honestly haven't gotten anywhere with this yet. I was trying to figure out why I can't seem to get my code to print to the output window on my local copy, and when I asked about this problem in the Contributors gitter chat room, pointed me to this: So as far as I know, we're no longer printing to the output window, but then says this: " they sure are taught. And the output box will be used. It just has a need to change the code from the seed. You can make smaller PRs should you feel its tedious to all at once! Just make sure to comment on the main issue as you go along" Honestly, I'm confused as hell now. I don't know what it is we're trying to do and if it matters or not that my output window does not work on my local version of FCC.
Sorry for the confusion and the late reply! Let me try to clear things up: In the live version of the site, whatever is returned is what is outputted to the output window. In the beta version (which is the one we're working on here on GitHub), this has been changed. Return output is now ignored, but all console output is being shown in the output window. This means that all function calls that should have a visible output, should be wrapped in a statement. That is the aim of the issue you referenced. Here's what I think should be done to resolve this issue: the tail some code to the seed that logs a call to the newly created function, below a "do not edit below this..." comment. I hope that clears things up. If you need more information, feel free to pop back on Gitter (you can DM me if you wish )
Since this has been inactive for a while, I thought I'd give this a shot :smile:
Challenge: Basic Java script - Assignment with a Returned Value ! The code looks like this: The result in the console window is this: processed =2 The feedback is: Correct: processed should have a value of 2 Incorrect: You should assign processArg to processed I included a screendump. I don’t understand if I am doing something stupid, I apologise in advance if I am only wasting your time. Please tell me if I am missing something here. Regards and thanks
I was able to get rid of this problem, I reset my code and that removed the issue. I must admit that I created the solution just before the last poster worked on the problem, the old version must have been saved somehow. Now, I was able to continue with the next challenge.
Glad you solved it! I think this can have been related to the lack of a space before the equal sin on the final line of your solution. Sometimes the tests expect a certain format of the code, even though the code is perfectly functional. Good luck and happy coding! :smile:
Destroyed challenge
Returning a Value from a Function with Return. First in this lesson we're asked to Create a function timesFive that accepts one argument, multiplies it by 5, and returns the new value. LINES: 1 // Function creation below 2 function timesFive(num) { return num * 5; }; 3 // Calling function timesFive with a number to return 25 as instructed 4 timesFive(5); When the above code is been debugged the output of will be a new value of 25. Thanks.

{ <del> "node": true </del> <ins> /* * ENVIRONMENTS * ================= */ // Define globals exposed by Node.js. "node": true, /* * ENFORCING OPTIONS * ================= */ // Force all variable names to use either camelCase style or UPPER_CASE // with underscores. "camelcase": true, // Prohibit use of == and != in favor of === and !==. "eqeqeq": true, // Suppress warnings about == null comparisons. "eqnull": true, // Enforce tab width of 2 spaces. "indent": 2, // Prohibit use of a variable before it is defined. "latedef": true, // Require capitalized names for constructor functions. "newcap": true, // Enforce use of single quotation marks for strings. "quotmark": "single", // Prohibit trailing whitespace. "trailing": true, // Prohibit use of explicitly undeclared variables. "undef": true, // Warn when variables are defined but never used. "unused": true, // Enforce line length to 80 characters "maxlen": 80 </ins> }

<ins> { /* * ENVIRONMENTS * ================= */ // Define globals exposed by modern browsers. "browser": true, // Define globals exposed by jQuery. "jquery": true, /* * ENFORCING OPTIONS * ================= */ // Force all variable names to use either camelCase style or UPPER_CASE // with underscores. "camelcase": true, // Prohibit use of == and != in favor of === and !==. "eqeqeq": true, // Suppress warnings about == null comparisons. "eqnull": true, // Enforce tab width of 2 spaces. "indent": 2, // Prohibit use of a variable before it is defined. "latedef": true, // Require capitalized names for constructor functions. "newcap": true, // Enforce use of single quotation marks for strings. "quotmark": "single", // Prohibit trailing whitespace. "trailing": true, // Prohibit use of explicitly undeclared variables. "undef": true, // Warn when variables are defined but never used. "unused": true, // Enforce line length to 80 characters "maxlen": 80, // Enforce placing 'use strict' at the top function scope "strict": true' } </ins>


Question:
<!-- FreeCodeCamp Issue Template --<!-- NOTE: ISSUES ARE NOT FOR CODE HELP - Ask for Help at --<!-- Please provide as much detail as possible for us to fix your issue --<!-- Remove any heading sections you did not fill out --<!-- Insert link to challenge below -- <!-- Describe below when the issue happens and how to reproduce it --In the discussion and questions concerning big-o notation, O(N^2) is referred to as "exponential time", which is wrong. O(N^C), where C is any constant greater than 1 (e.g. 2) is called "polynomial time". Exponential time looks like O(C^N), where the input variable (N) is in the exponent. Roughly speaking, the complexity class P (polynomial time solvable) is what we (or complexity theorists) consider "easy" - or at least solvable. Exponential time algorithms typically have no hope of being solved on large inputs (and therefore are good candidates for heuristics, or approximations). For a bit more intuition, an algorithm with O(N^2) complexity may not be a good candidate for real-time processing in your web app - but it may be perfectly suitable for less time critical tasks. With an algorithm like this, you might decide to pre-compute some solutions as a workaround. With an exponential time algorithm O(C^N), on the other hand, the sun may burn out before your computation ends. Concerning O(infinity) - notice the lack of an input variable (N), and that infinity isn't a number. It's probably best to replace that idea with a statement about non-terminating routines. This might lead into a discussion about the halting problem, for example.
To contributors, needs to be changed to
Hi, I would like to work on this issue.
I wonder if this lesson might need more done to it than just a simple one sentence fix. The lesson text and quiz questions map directly to the video lesson, so correcting them while the video is saying something different would probably be confusing. This text fix might need to wait until there's a video fix. Or maybe we could add an errata at the top or bottom of the lesson text until the video is corrected?
I can work on creating a new video tomorrow afternoon.

], "tests": [ [ <del> "Algorithms expressed exponentially like O(N^2) can work well in certain situations, so you shouldn't avoid them completely.", </del> <ins> "Algorithms expressed exponentially like O(C^N), where C is a constant can work well in certain situations, so you shouldn't avoid them completely.", </ins> false, "While they can work in certain small scale situations, they aren't good practice because they will not work larger scale." ],


Question:
Advanced Algorithm Scripting () Translate the challenge Advanced Algorithm Scripting in Italian
I'll be working on this

"
555-555-5555n(555)555-5555n(555) 555-5555n555 555 5555n5555555555n1 555 555 5555
", "Para esta prueba se te presentará una cadena de texto como por ejemplo: 800-692-7753 o 8oo-six427676;laskdjf. Tu trabajo consiste en validar o rechazar el número telefónico tomando como base cualquier combinación de los formatos anteriormente presentados. El código de área es requrido. Si el código de país es provisto, debes confirmar que este es 1. La función debe devolver true si la cadena de texto es un número telefónico válido en los EEUU; de lo contrario, debe devolver false.", "Recuerda utilizar Read-Search-Ask si te sientes atascado. Intenta programar en pareja. Escribe tu propio código."  ], "titleIt": "Verifica numeri telefonici degli Stati Uniti", "descriptionIt": [ "Ritorna true se la stringa passata come argomento è un numero valido negli Stati Uniti.", "L'utente può digitare qualunque stringa nel campo di inserimento, purchè sia un numero di telefono valido negli Stati Uniti. Qui sotto alcuni esempi di numeri di telefono validi negli Stati Uniti (fai riferimento ai test per le altre varianti):", "
555-555-5555n(555)555-5555n(555) 555-5555n555 555 5555n5555555555n1 555 555 5555
", "In questo problema ti saranno presentate delle stringe come 800-692-7753 o 8oo-six427676;laskdjf. Il tuo obiettivo è di validare o rigettare il numero di telefono basato su una qualunque combinazione dei formati specificati sopra. Il prefisso di zona è obbligatorio. Se il prefisso nazionale è presente, devi confermare che corrisponda a 1. Ritorna true se la stringa è un numero di telefono valido negli Stati Uniti; altrimenti ritorna false.", "Ricorda di usare Leggi-Cerca-Chiedi se rimani bloccato. Prova a programmare in coppia. Scrivi il codice da te."  ] }, {

"Crea una función que acepte dos o más arreglos y que devuelva un arreglo conteniendo la diferenia simétrica entre ambos", "En Matemáticas, el término 'diferencia simétrica' se refiere a los elementos en dos conjuntos que están en el primer conjunto o en el segundo, pero no en ambos.", "Recuerda utilizar Read-Search-Ask si te sientes atascado. Intenta programar en pareja. Escribe tu propio código."  ], "titleIt": "Differenza simmetrica", "descriptionIt": [ "Crea una funzione che accetti due o più array e che ritorni un array contenente la <dfn>differenza simmetrica</dfn> (△ o ⊕) degli stessi.", "Dati due insiemi (per esempio l'insieme A = {1, 2, 3} e l'insieme B = {2, 3, 4}, il termine matematico "differenza simmetrica" di due insiemi è l'insieme degli elementi che sono in almeno uno dei due insiemi, ma non in entrambi (A △ B = C = {1, 4}). Per ogni differenza simmetrica aggiuntiva che fai (per esempio su un insieme D = {2, 3}), devi prendere l'insieme degli elementi che sono in almeno uno dei due insiemi ma non in entrambi (C △ D = {1, 4} △ {2, 3} = {1, 2, 3, 4}).", "Ricorda di usare Leggi-Cerca-Chiedi se rimani bloccato. Prova a programmare in coppia. Scrivi il codice da te."  ] }, {

"La función debe devolver la cadena de texto "Insufficient Funds" si el cid es menor al cambio requerido. También debe devolver "Closed" si el cid es igual al cambio", "De no ser el caso, devuelve el cambio en monedas y billetes, ordenados de mayor a menor denominación.", "Recuerda utilizar Read-Search-Ask si te sientes atascado. Intenta programar en pareja. Escribe tu propio código."  ], "titleIt": "Cambio esatto", "descriptionIt": [ "Scrivi una funzione che simuli un registro di cassa chiamata checkCashRegister() che accetti il prezzo degli articoli come primo argomento (price), la somma pagata (cash), e la somma disponibile nel registratore di cassa (cid) come terzo argomento.", "cid è un array a due dimensioni che contiene la quantità di monete e banconote disponibili.", "Ritorna la stringa "Insufficient Funds" se la quantità di denaro disponibile nel registratore di cassa non è abbastanza per restituire il resto. Ritorna la stringa "Closed" se il denaro disponibile è esattamente uguale al resto.", "Altrimenti, ritorna il resto in monete e banconote, ordinate da quelle con valore maggiore a quelle con valore minore.", "Ricorda di usare Leggi-Cerca-Chiedi se rimani bloccato. Prova a programmare in coppia. Scrivi il codice da te."  ] }, {

"descriptionEs": [ "Compara y actualiza el inventario actual, almacenado en un arreglo bidimensional, contra otro arreglo bidimensional de inventario nuevo. Actualiza las cantidades en el inventario actual y, en caso de recibir una nueva mercancía, añade su nombre y la cantidad recibida al arreglo del inventario en orden alfabético.", "Recuerda utilizar Read-Search-Ask si te sientes atascado. Intenta programar en pareja. Escribe tu propio código."  ], "titleIt": "Aggiornamento dell'inventario", "descriptionIt": [ "Confronta e aggiorna l'inventario, contenuto in un array bidimensionale, con un secondo array bidimensionale relativo ad una nuova consegna. Aggiorna le quantità disponibili in inventario (dentro arr1). Se uno degli articoli non è presente nell'inventario, aggiungi allo stesso il nuovo articolo e la sua quantità. Ritorna un array con l'inventario aggiornato, che deve essere ordinato alfabeticamente per articolo.", "Ricorda di usare Leggi-Cerca-Chiedi se rimani bloccato. Prova a programmare in coppia. Scrivi il codice da te."  ] }, {

"Crea una función que devuelva el número total de permutaciones de las letras en la cadena de texto provista, en las cuales no haya letras consecutivas repetidas", "Por ejemplo, 'aab' debe retornar 2 porque, del total de 6 permutaciones posibles, solo 2 de ellas no tienen repetida la misma letra (en este caso 'a').", "Recuerda utilizar Read-Search-Ask si te sientes atascado. Intenta programar en pareja. Escribe tu propio código."  ], "titleIt": "Niente ripetizioni, per favore", "descriptionIt": [ "Ritorna il numero totale di permutazioni della stringa passata che non hanno lettere consecutive riptetute. Assumi che tutti i caratteri nella stringa passata siano unici.", "Per esempio, aab deve ritornare 2, perchè la stringa ha 6 permutazioni possibili in totale (aab, aab, aba, aba, baa, baa), ma solo 2 di loro (aba e aba) non contengono la stessa lettera (in questo caso a ripetuta).", "Ricorda di usare Leggi-Cerca-Chiedi se rimani bloccato. Prova a programmare in coppia. Scrivi il codice da te."  ] }, {

"La presentación amigable debería usar nombres de meses en inglés en lugar de números y fechas ordinales en lugar de cardinales ("1st" en lugar de "1").", "No presentes información redundante o que pueda ser inferida por el usuario: si el rango de fechas termina en menos de un año desde la fecha incial, no presentes el año final.  Si el rango termina en el mismo mes de la fecha inicial, no presentes ni el mes ni el año final.", "Además, si el rango de fechas comienza en el año actual y termina en un año o menos, no debes presentar el año al comienzo del rango amigable."  ], "titleIt": "Intervalli di date leggibili", "descriptionIt": [ "Converti un intervallo di date composto da due date in formato YYYY-MM-DD in un formato più leggibile.", "Il formato leggibile deve usare i nomi dei mesi (in inglese) e le i numeri dei giorni in formato ordinale invece che cardinale (sempre in inglese. Ad esempio 1st invece di 1).", "Non mostrare informazioni ridondanti o che siano ricavabili dall'utente: se l'intervallo di date termina in meno di un anno da quando inizia, non mostrare l'anno in cui l'intervallo termina.", "In più, se l'intervallo di date incomincia nell'anno corrente (siamo nell'anno 2016) e finisce nel giro di un anno, l'anno non deve essere mostrato all'inizio del risultato.", "Se l'intervallo di date finisce nello stesso mese in cui incomincia, non mostrare l'anno di termine nè il mese.", "Esempi:", "makeFriendlyDates(["2016-07-01", "2016-07-04"]) deve ritornare ["July 1st","4th"]", "makeFriendlyDates(["2016-07-01", "2018-07-04"]) deve ritornare ["July 1st, 2016", "July 4th, 2018"].", "Ricorda di usare Leggi-Cerca-Chiedi se rimani bloccato. Prova a programmare in coppia. Scrivi il codice da te."  ] }, {

"Las funciones que aceptan argumentos deben aceptar sólo uno, y este tiene que ser una cadena.", "Estos métodos deben ser el único medio para interactuar con el objeto.", "Recuerda utilizar Leer-Buscar-Preguntar si te sientes atascado. Intenta programar en pareja. Escribe tu propio código."  ], "titleIt": "Crea una Persona", "descriptionIt": [ "Completa il costruttore dell'oggetto con i metodi specificati qui sotto:", "
getFirstName()ngetLastName()ngetFullName()nsetFirstName(first)nsetLastName(last)nsetFullName(firstAndLast)
", "Esegui i test per vedere il risultato atteso per ogni metodo.", "I metodi che richiedono un argomento devono accettarne solo uno e questo deve essere una stringa.", "Questi metodi devono essere l'unica maniera possibile di interagire con l'oggetto.", "Ricorda di usare Leggi-Cerca-Chiedi se rimani bloccato. Prova a programmare in coppia. Scrivi il codice da te."  ] }, {

"Los valores deben estar redondeados al número entero más próximo. El cuerpo orbitado es la Tierra", "El radio de la Tierra es 6367.4447 kilómetros, y el valor GM del planeta es de 398600.4418 km3s-2.", "Recuerda utilizar Read-Search-Ask si te sientes atascado. Intenta programar en pareja. Escribe tu propio código."  ], "titleIt": "Mappa i detriti", "descriptionIt": [ "Ritorna un nuovo array che trasformi l'altitudine media degli elementi nel loro periodo orbitale.", "L'array conterrà oggetti in formato {name: 'name', avgAlt: avgAlt}.", "Puoi leggere riguardo i periodi orbitali su wikipedia.", "I valori devono essere arrotondati al numero intero più vicino. Il corpo attorno a cui orbitano gli elementi è la Terra.", "Il raggio della Terra è di 6367.4447 kilometri, e il valore GM della Terra è di 398600.4418 km3s-2.", "Ricorda di usare Leggi-Cerca-Chiedi se rimani bloccato. Prova a programmare in coppia. Scrivi il codice da te."  ] }, {

"Por ejemplo, pairwise([1, 4, 2, 3, 0, 5], 7) debe devolver 11 porque 4, 2, 3 y 5 pueden ser emparejados para obtener una suma de 7", "pairwise([1, 3, 2, 4], 4) devolvería el valor de 1, porque solo los primeros dos elementos pueden ser emparejados para sumar 4. ¡Recuerda que el primer elemento tiene un índice de 0!", "Recuerda utilizar Read-Search-Ask si te sientes atascado. Intenta programar en pareja. Escribe tu propio código."  ], "titleIt": "A coppie", "descriptionIt": [ "Dato un array arr, trova le coppie di elementi la cui somma è uguale al secondo argomento passato arg. Ritorna quindi la somma dei loro indici.", "Se ci sono più coppie possibili che hanno lo stesso valore numerico ma indici differenti, ritorna la somma degli indici minore. Una volta usato un elemento, lo stesso non può essere riutilizzato per essere accoppiato con un altro.", "Per esempio pairwise([7, 9, 11, 13, 15], 20) ritorna 6. Le coppia la cui somma è 20 sono [7, 13] e [9, 11]. Possiamo quindi osservare l'array con i loro indici e valori.", "

Indice	0	1	2	3	4

Valore	7	9	11	13	15

", "Qui sotto prendiamo gli indici corrispondenti e li sommiamo.", "7 + 13 = 20 → Indici 0 + 3 = 3
9 + 11 = 20 → Indici 1 + 2 = 3
3 + 3 = 6 &#8594 Ritorna 6", "Ricorda di usare Leggi-Cerca-Chiedi se rimani bloccato. Prova a programmare in coppia. Scrivi il codice da te."  ] } ]


Question:
A caret symbol, needs to be . So the result should look like this: . Please review before opening a PR, thank you!
Hi there - can I take this one? I'm new to contributing to FCC and this issue seems like a great way to get everything set up and working properly to help out more in the future.

"tape": "^4.2.2" }, "snyk": true <del> } </del>  No newline at end of file <ins> } </ins>


Question:
On the map, if I hover my cursor over a link, it shows the text selection cursor, not the clicker cursor.
I get both pointers and text selectors in Chrome. Same with a big map (full page). !

padding-left: 36px; } <ins> .map-accordion-panel-nested-title > a { cursor: pointer; } </ins> @media (max-width: 400px) { .map-accordion-panel-nested { margin: 0;

padding:10px 0; padding-left:50px; padding-right:20px; <ins> cursor: pointer; </ins> } a {


Question:
Challenge has an issue. User Agent is: <codeMozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36</code. Please describe how to reproduce this issue, and include links to screenshots if possible. My code:
methods are case sensitive. should be is a great place for questions like this
thanks for the issue but if you get stuck or have questions with a challenge in the future, please first ask questions to the . What has suggested is correct. Happy coding!
I've tried it several times, making sure code was acurate... there must be another problem
Sorry about that but no one was answering me in the help room
no worries. Yeah, sometimes the Help Rooms are pretty busy and getting help is difficult. Please be patient. There are many people in there that are willing to help. You can always tag me there and I get help you out when I can

transform: translateY(-50%); } <ins> .landing-skill-icon { color: #215f1e; font-size: 150px; } .black-text { color: #333; font-weight: 400; font-size: 40px; } .font-awesome-padding { margin-top: 45px; margin-bottom: 20px; } </ins> .background-svg { width: 220px; height: 220px;

background-position: center; } <ins> .testimonial-image { border-radius: 5px; height: 200px; width: 200px; } .testimonial-copy { font-size: 20px; text-align: center; @media (min-width: 991px) and (max-width: 1199px) { height: 120px; } @media (min-width: 1200px) { height: 90px; } } </ins> //uncomment this to see the dimensions of all elements outlined in red //* { //  border-color: red;

extends layout block content <del> .hidden-xs a(href='https://github.com/freecodecamp/freecodecamp') img(style='position: absolute; top: 40; right: 0; border: 0; margin-top: -30px;', src='https://camo.githubusercontent.com/e7bbb0521b397edbd5fe43e7f760759336b5e05f/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f677265656e5f3030373230302e706e67', alt='Fork me on GitHub', data-canonical-src='https://s3.amazonaws.com/github/ribbons/forkme_right_green_007200.png') </del> .jumbotron .text-center h1.hug-top Code with Us

br br a.btn.nonprofit-cta.btn-success(href="/nonprofits") I'm with a nonprofit and want help coding something <del> include partials/about include partials/faq </del>  No newline at end of file <ins> .big-break h2 Campers you'll hang out with: .row .col-xs-12.col-sm-12.col-md-4 img.img-responsive.testimonial-image.img-center(src="https://s3.amazonaws.com/freecodecamp/testimonial-jen.jpg", alt="@jenthebest's testimonial image") .testimonial-copy Getting back on track with Free Code Camp and committing to a new career in 2015! h3 - @jenthebest .col-xs-12.col-sm-12.col-md-4 img.img-responsive.testimonial-image.img-center(src="https://s3.amazonaws.com/freecodecamp/testimonial-tate.jpg", alt="@TateThurston's testimonial image") .testimonial-copy Just built my company's website with skills I've learned from Free Code Camp! h3 - @TateThurston .col-xs-12.col-sm-12.col-md-4 img.img-responsive.testimonial-image.img-center(src="https://s3.amazonaws.com/freecodecamp/testimonial-cynthia.jpg", alt="@cynthialanel's testimonial image") .testimonial-copy  I'm currently working through Free Code Camp to improve my JavaScript. The community is very welcoming! h3 - @cynthialanel .big-break h2 Skills you'll learn: .text-center .col-xs-12.col-sm-12.col-md-3 .landing-skill-icon.ion-social-html5 .black-text HTML5 .col-xs-12.col-sm-12.col-md-3 .landing-skill-icon.ion-social-css3 .black-text CSS3 .col-xs-12.col-sm-12.col-md-3 .landing-skill-icon.ion-social-javascript .black-text JavaScript .col-xs-12.col-sm-12.col-md-3 .landing-skill-icon.fa.fa-database.font-awesome-padding .black-text Databases .col-xs-12.col-sm-12.col-md-3 .landing-skill-icon.ion-social-chrome .black-text DevTools .col-xs-12.col-sm-12.col-md-3 .landing-skill-icon.ion-social-nodejs .black-text Node.js .col-xs-12.col-sm-12.col-md-3 .landing-skill-icon.ion-social-angular .black-text Angular.js .col-xs-12.col-sm-12.col-md-3 .landing-skill-icon.ion-ios-loop-strong .black-text Agile .big-break h2   h2 Fast facts about our community: h3.col-xs-offset-0.col-sm-offset-1.col-md-offset-2 ul.text-left li.ion-code   We're 100% free and open source li.ion-code   We're thousands of professionals who are learning to code li.ion-code   We're building projects for dozens of nonprofits li.ion-code   We share one goal: to boost our careers with code .big-break a.btn.btn-cta.signup-btn(href="/login") Start learning to code (it's free) </ins>  No newline at end of file


Question:
Challenge has an issue. User Agent is: <codeMozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36</code. Please describe how to reproduce this issue, and include links to screenshots if possible. My code:
methods are case sensitive. should be is a great place for questions like this
thanks for the issue but if you get stuck or have questions with a challenge in the future, please first ask questions to the . What has suggested is correct. Happy coding!
I've tried it several times, making sure code was acurate... there must be another problem
Sorry about that but no one was answering me in the help room
no worries. Yeah, sometimes the Help Rooms are pretty busy and getting help is difficult. Please be patient. There are many people in there that are willing to help. You can always tag me there and I get help you out when I can

].concat(trusted), frameSrc: [ '*.gitter.im', <ins> '*.gitter.im https:', </ins> '*.vimeo.com', '*.twitter.com', '*.rafflecopter.com',


Question:
<!-- Insert link to challenge below -- <!-- Describe below when the issue happens and how to reproduce it --when adding the trash glyphicon, "Delete" text is cut off due to padding from "container" class. <!-- Describe your workspace in which you are having issues--using macbook with 13inch screen Browser Name, Version: Google Chrome Operating System: El Capitan OSX Desktop !
Closing as a duplicate of . Thanks and happy coding!

"The style that is responsible for the color of an element's text is the "color" style.", "Here's how you would set your h2 element's text color to blue:", "<h2 style="color: blue;">CatPhotoApp</h2>",  "Note that it is a good practice to end inline style declarations with a ; .",  "
", "Change your h2 element's style so that its text color is red." ],

"" ], "tests": [  "assert(code.match(/<h2s+styles*=s*('|")s*colors*:s*(?:rgb(s*255s*,s*0s*,s*0s*)|rgb(s*100%s*,s*0%s*,s*0%s*)|red|#ff0000|#f00|hsl(s*0s*,s*100%s*,s*50%s*))s*;?('|")>s*CatPhotoApps*
/), 'message: Your h2 element should be red.');"   "assert(code.match(/<h2s+styles*=s*('|")s*colors*:s*(?:rgb(s*255s*,s*0s*,s*0s*)|rgb(s*100%s*,s*0%s*,s*0%s*)|red|#ff0000|#f00|hsl(s*0s*,s*100%s*,s*50%s*))s*;?('|")>s*CatPhotoApps*
/), 'message: Your h2 element should be red.');", "assert(code.match(/<h2s+styles*=s*('|")s*colors*:s*(?:rgb(s*255s*,s*0s*,s*0s*)|rgb(s*100%s*,s*0%s*,s*0%s*)|red|#ff0000|#f00|hsl(s*0s*,s*100%s*,s*50%s*))s*;('|")>s*CatPhotoApps*
/),' message: Your style declaration should end with a ; .');"  ], "type": "waypoint", "challengeType": 0,


Question:
<!-- FreeCodeCamp Issue Template --<!-- Please provide as much detail as possible for us to fix your issue --<!-- Remove any heading sections you did not fill out -- There's a typo. "your them"
I'm working on it.

p You’ll continue to work on nonprofit projects until you’ve built a sufficiently impressive portfolio and references to start your job search. Your portfolio will ultimately have four nonprofit projects. We estimate that the 800 hours of nonprofit projects and 80 hours of interview prep you’re going to complete, in addition to the 1,200 hours of challenges you’ve already completed by this point, will be more than enough to qualify you for your first coding job. h3 Your first Nonprofit Project p We generally scope Nonprofit Projects to 200 hours, or about 10 weeks at 20 hours per week of development per camper. These are only rough estimates. You’ll only work on one project at a time. <del> p You will choose another camper to partner with on this projects. You should choose your them based on: </del> <ins> p You will choose another camper to partner with on this projects. You should choose them based on: </ins> ol li How many hours you can pledge (around 10, 20, or 40 hours per week) li Your time zones (Will you be able to pair program together?)


Question:
Challenge has an issue. User Agent is: <codeMozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36</code. Please describe how to reproduce this issue, and include links to screenshots if possible. My code:
Hi Your code is not correct, there is a typo. The issue tracker is for reporting bugs only. Please use the or try looking through the for help with a specific challenge. Happy Coding.

```bash <ins> # Start the mongo server mongod </ins> # Seed your database with the challenges node seed_data/seed.js


Question:
Challenge has an issue. User Agent is: <codeMozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36</code. Please describe how to reproduce this issue, and include links to screenshots if possible. ! My code: So overall I would suggest removing the "" from the tests
thank you for reporting this issue Can we have a PR to remove the quotes around the expected return in the test cases
I would like to try to solve this bug. This will be my first PR.
Thank you for reporting this issue. This has been fixed in This is a standard message notifying you that this issue is present in production, but it has been fixed in staging. Because of that, I'm closing this issue. When staging will be pushed to production again, your issue will be resolved. If you think I'm wrong in closing this issue, please reopen it and add further clarification. Thank you, and happy coding.

```bash <ins> # Start the mongo server mongod </ins> # Seed your database with the challenges node seed_data/seed.js


Question:
Hello, here is the latest code that froze the fibonacci challenge page. function sumFibs(num) { var myArr = []; var n; for (i = 0; i < num; i++){ (i); } return myArr; } sumFibs(4); The issue is that every array within a loop, no matter how simple, freezes that page. I have been attempting to do the challenge, but every program I tried froze the page. I would reset, and try again, with the same result. Finally, I tried the code above, the loop and array stripped to the absolute essentials. The page froze again. I went on Gitterfor help, but nobody understood why it froze. I searched github and found similar issues but those were either closed (sometimes without actually resolving the issue) or were not quite the same issue. On the strength of this advice, I cleared my local browser. "If your code crashes your browser, also try Clearing Your Browser's Local Storage." Now I have lose all record of weeks of work I have done getting to this point. I am using ChromeVersion 54.0.2840.99 on Windows 7 professional on a Dell Notebook. ! Tessa Murphy (email removed for privacy)
Looking at your loop, could you try making a local variable with or , and see if it works?
This is not an issue with a challenge. I get the challenge. I can do the challenge on other platforms. This is an issue with the FCC page. The page freezes no matter what array I use. I posted the code to show that it freezes even with a very very simple loop and array. I believe that is fairly common practice when reporting bugs, to show the minimum required to cause an error -- in this case the page freezing. Manish-Giri, I've the var to the i with no change in outcome. The page freezes. Also, the help page advises people to clear their browsers. Doing that lost me all the progress I've made to this point. That, I would think, is also a bug.
I tried your code on the Sum All Fibonacci Numbers Challenge: (n)%20%7B%0A%2F%2F%20%20%20%20%20if%20(%20n%20%3D%3D%3D%200%20)%20%7B%0A%2F%2F%20%20%20%20%20%20%20%20%20return%200%3B%0A%2F%2F%20%20%20%20%20%7D%0A%2F%2F%20%20%20%20%20let%20sumOdds%20%3D%200%3B%0A%2F%2F%20%20%20%20%20let%20prev%20%3D%200%2C%20curr%20%3D%201%3B%0A%2F%2F%20%20%20%20%20while%20(%20curr%20%3C%3D%20n%20)%20%7B%0A%2F%2F%20%20%20%20%20%20%20%20%20if%20(%20curr%20%25%202%20!%3D%3D%200%20)%20%7B%0A%2F%2F%20%20%20%20%20%20%20%20%20%20%20%20%20sumOdds%20%2B%3D%20curr%3B%0A%2F%2F%20%20%20%20%20%20%20%20%20%7D%0A%2F%2F%20%20%20%20%20%20%20%20%20let%20newCurr%20%3D%20prev%20%2B%20curr%3B%0A%2F%2F%20%20%20%20%20%20%20%20%20prev%20%3D%20curr%3B%0A%2F%2F%20%20%20%20%20%20%20%20%20curr%20%3D%20newCurr%3B%0A%2F%2F%20%20%20%20%20%7D%0A%2F%2F%20%20%20%20%20return%20sumOdds%3B%09%09%2F%2F%20build%20fib%20numbers%20%3C%3D%20num%0A%2F%2F%20%7D%3B%0A%09%0A%0A%2F%2F%20sumFibs(4)%3B%0A%0A%0A%0Afunction%20sumFibs(num)%20%7B%0Avar%20myArr%20%3D%20%5B%5D%3B%0Avar%20n%3B%0Afor%20(i%20%3D%200%3B%20i%20%3C%20num%3B%20i%2B%2B)(i)%3B%0A%7D%0Areturn%20myArr%3B%0A%7D%0A%0AsumFibs(4)%3B%0A And sure enough, it froze the FCC webpage which is strange since running the code directly in the Chrome console returns myArr as expected. Seems to not be a local issue.
Works in too.
confirmed in
are you able to carry on with other challenges?
The issue seem to be . In one test alone this will mutate 40 million times. Using keeps the browser alive during this operation
I have also experienced this issue
could this be some weird thing?
Please try running the code with at the top of your code in the editor. If it passes then it could be a loop protect issue, which we will have to look into.
The issue here is not with the time that takes the loop in the challenge code to finish (which is protected), but with tests that try to compare the result. For one test () the code returns an array with 4,000,000 items (approximately 400MB of RAM). There's no protection against humongous arrays here so pretty much every challenge can be frozen just by making the code return large array.
Sorry I didn't see this and respond earlier. Succinctly, all the remedies you've suggested are things I tried before I contacted you. The original code that I sent you was after everything else had failed. I stripped it down to the bare minimum to see if it still failed, and it did. That's when I contacted you. The only clues I can offer are that it appeared to hang on the return, in Chrome, which is the browser I usually use, but that I was able to complete the assignment in another browser, firefox. , Mrugesh Mohapatra < :
Funny thing: since Firefox's JavaScript engine is less performant than Chrome's, pushing 4,000,000 items in a loop takes more than a second which triggers to stop the execution. That's why there's no browser freezes in Firefox for this code. fyi your current solution works in Chrome as well because it doesn't create humongous arrays any more.
You haven't actually lost any work for challenges that you've passed. All challenges that you pass and submit are stored in the database and are accessible from your profile page. Code that you see via the map is stored locally.
@ Brian, thanks, someone else pointed that out as well. I was in a panic and hadn't thought things through clearly, after which I felt like an idiot. But a greatly relieved idiot. my original code most certainly did cause the freeze. I saw right away what I'd done, but by then the page was frozen. That was not the mystery to me. It was the thirty or so screen freezes AFTER THAT that had me worried. I had used no protect, I had shut down my computer and restarted it. I had used run=disable to get back into the program and reset the screen, again and again, and finally I had stripped my code down, literally, to: for(i = 0; i < 4; i++){ var arr = i; } return i; I don't remember if I actually a var to the i or if arr was the actual variable I used, but in essence that was the code. That is what I'm trying to tell you. THAT code froze the screen in chrome. AFTER thirty or so resets. I WAS able to complete the challenge in firefox after addressing the errors I'd made. The stripped down code ran fine in Chrome until I the return. I would love to know what caused the continued freezing on my pc and if maybe it would have worked just fine on another computer, but mostly I'm just glad someone showed me a way to work around the issue and move on. I am again working in Chrome. Only that challenge was affected. , Brian <:
the issue you submitted is valid and confirmed by me and other people. Thank you for taking the time to make FreeCodeCamp a better learning platform. FreeCodeCamp testing program doesn’t protect from every possible code that can freeze the browser. In this case it does not protect from creating really big arrays and performing operations on them. This line: is just one example of browser-freezing codes. It’s pretty hard to protect users from executing such statements since constructors for array literals cannot be overridden. The FCC code works as expected, it’s just not capable to protect from such cases. A browser freeze is caused by this test case: "assert.deepEqual(sumFibs(), , 'message: <codesumFibs()</codeshould return .');" Side note: The test check if two objects are deep equal. Deep equality check is only needed when we check non-primitve objects. Numbers are primitives, so we don’t need deep equality checks here. When the assertion fails, chai (assertion library used for testing) tries to be helpful and converts the objects into text form. Unfortunately, converting an array with 4,000,000 items into a string takes a long time. As a workaround, the equality comparison can be done manually, and then checked for truthy result: "assert.deepEqual(sumFibs() === , true, 'message: <codesumFibs()</codeshould return .');"
It should still be tagged a bug because i use Chrome regularly and I've being stopped severally by JSBin's loop protect. And yeah, we'd still have a jank even if we change it to
JSbin's loop protect is set to stop loop execution that takes longer than 100ms, while FCC's is set to 1s. So yes, JSbin has better loop protect ;) If you have an idea for code that would prevent browser freezes caused by operations on large arrays, by all means go for it. :+1:
i think it's running an infinite loop thats why the browser freezes.
Also ran into this issue. Might have to approach the problem differently in order to avoid creating arrays that break the browser.
Yeah. But we don't want the user's browser to freeze :sweat_smile:
This seems like valuable experience in how computers work. Perhaps some early explanations/warnings/instructions on how to prevent and deal with frozen browser tabs are more useful than protecting users from the experience.
I have debated even continuing this discussion but have found others in a similar situation so feel it is necessary to make one last attempt at communication. I did NOT file this bug because the browser froze on an endless loop. Okay? This is very important and seems to be the primary misunderstanding. I DO understand that browsers freeze on endless loops, that that is expected behavior and that it was my error. I repeat, I DID NOT file a bug because the browser froze on an endless loop. I DID file a bug because after I had discovered my mistake, cleared the mistake, reset my page AND the computer several times, the page continued to freeze. So, in summary, I DID NOT file a bug because the browser froze on an endless loop. I DID file a bug because the page froze on an array that was essentially: for (var i = 0; i <4; i++){ i++}; YES, I understand this doesn't do anything but count. It was a test. To see if my page would freeze on a basic loop, Which it did. So, once again for good measure, I DID NOT file a bug because the page froze on an endless loop. I DID file a bug because the page froze on a loop that counted to 3. And no, that is not how computers are supposed to work. That is a bug. cheers. , Theron Cross <:
Sorry , that comment wasn't directed at your bug, but some of the suggested 'fixes'. I'm trying to reproduce it now.
Thanks !
No worries For the most part I'm simply venting my frustration. After multiple attempts at rephrasing and re-explaining, I still have no confidence that the central issue is understood or acknowledged, never mind addressed or reproduced. If it helps you understand the issue any, I can tell you I solved my immediate problem by switching to another browser. , mrugesh mohapatra < :

```bash <ins> # Start the mongo server mongod </ins> # Seed your database with the challenges node seed_data/seed.js


Question: <!-- FreeCodeCamp Issue Template --<!-- Please provide as much detail as possible for us to fix your issue --<!-- Remove any heading sections you did not fill out --<!-- Insert link to challenge below --<!-- Describe below when the issue happens and how to reproduce it --<!-- Describe your workspace in which you are having issues--Browser Name, Version: Operating System: Mobile, Desktop, or Tablet: <!-- If relevant, paste all of your challenge code in here --<!-- Add a screenshot of your issue --

```bash <ins> # Start the mongo server mongod </ins> # Seed your database with the challenges node seed_data/seed.js


Question: <!-- FreeCodeCamp Issue Template --<!-- Please provide as much detail as possible for us to fix your issue --<!-- Remove any heading sections you did not fill out --<!-- Insert link to challenge below --<!-- Describe below when the issue happens and how to reproduce it --<!-- Describe your workspace in which you are having issues--Browser Name, Version: Operating System: Mobile, Desktop, or Tablet: <!-- If relevant, paste all of your challenge code in here --<!-- Add a screenshot of your issue --

var isCompletedDate =  Math.round(+new Date() / 1000); var bonfireHash = req.body.bonfireInfo.bonfireHash; var isSolution = req.body.bonfireInfo.solution; <del> // TODO debug(isCompletedWith, 'Is completed with'); </del> if (isCompletedWith) { var paired = User.find({"profile.username": isCompletedWith}).limit(1);

throw err; } if (user && paired) { <del> res.redirect('/bonfires'); </del> <ins> res.send(true); </ins> } }) }); } }) } else { req.user.completedBonfires.push({ _id: bonfireHash, completedWith: null,

}) var index = req.user.uncompletedBonfires.indexOf(bonfireHash); if (index > -1) { req.user.uncompletedBonfires.splice(index,1) } req.user.save(function(err, user) { if (err) { throw err; } if (user) { <del> res.redirect('/bonfires'); </del> <ins> debug('Saving user'); res.send(true) </ins> } }); } }); // Unique Check API route

return res.redirect('bonfires/meet-bonfire'); } var currentTime = parseInt(+new Date() / 1000); <del> if (currentTime - req.user.lastContentSync > 86400) { </del> <ins> if (currentTime - req.user.lastContentSync > 10) { </ins> req.user.lastContentSync = currentTime; var completed = req.user.completedBonfires.map(function (elem) { return elem._id;

} } }); <del> } if (allTestsPassed) { allTestsPassed = false; showCompletion(); </del> <ins> if (allTestsPassed) { allTestsPassed = false; showCompletion(); } </ins> } };

$('#complete-bonfire-dialog').modal('show'); // Only post to server if there is an authenticated user if ($('.signup-btn-nav').length < 1) { <del> $.ajax({ type: 'POST', data: { </del> <ins> $.post( '/completed-bonfire', { </ins> bonfireInfo: { completedWith : didCompleteWith, solution: bonfireSolution, bonfireHash: thisBonfireHash } }, <del> url: '/completed-bonfire/' }); </del> <ins> function(res) { if (res) { window.location.href = 'http://localhost:3001/bonfires' } }) </ins> } } <ins> $('.next-bonfire-button').on('click', function() { var bonfireSolution = myCodeMirror.getValue(); var thisBonfireHash = passedBonfireHash || null; var didCompleteWith = $('#completed-with').val() || null; completedBonfire(didCompleteWith, bonfireSolution, thisBonfireHash); }); </ins> $('.all-challenges').on('click', function() { $('#all-challenges-dialog').modal('show'); });

}); <del> $('.next-bonfire-button').on('click', function() { var bonfireSolution = myCodeMirror.getValue(); var thisBonfireHash = passedBonfireHash || null; var didCompleteWith = $('#completed-with').val() || null; completedBonfire(didCompleteWith, bonfireSolution, thisBonfireHash); window.setTimeout(function() { // TODO window.location = '/bonfires'; }, 100); }); </del> // Bonfire instructions functions $('#more-info').on('click', function() {


Question:
Challenge has an issue. User Agent is: <codeMozilla/5.0 (Macintosh; Intel Mac OS X ) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36</code. Please describe how to reproduce this issue, and include links to screenshots if possible. My code:
can you be more specific on what you mean it doesn't align properly? A screenshot of your issue would also help describe what you mean by not aligning properly. Thanks! Possibly related:
! !
I'm seeing a similar issue on the "Add Font Awesome Icons to all of our Buttons" Challenge which proceeds this one. After adding the styling for the trash icon to the delete button, the icon doesn't show up on the button at all but clicking "Run Tests" succeeds. Seems to be an issue with the padding in the body and the container-fluid div. !
This is a duplicate of . That issue is still open so I think we should move discussion there.

var isCompletedDate =  Math.round(+new Date() / 1000); var bonfireHash = req.body.bonfireInfo.bonfireHash; var isSolution = req.body.bonfireInfo.solution; <del> // TODO debug(isCompletedWith, 'Is completed with'); </del> if (isCompletedWith) { var paired = User.find({"profile.username": isCompletedWith}).limit(1);

throw err; } if (user && paired) { <del> res.redirect('/bonfires'); </del> <ins> res.send(true); </ins> } }) }); } }) } else { req.user.completedBonfires.push({ _id: bonfireHash, completedWith: null,

}) var index = req.user.uncompletedBonfires.indexOf(bonfireHash); if (index > -1) { req.user.uncompletedBonfires.splice(index,1) } req.user.save(function(err, user) { if (err) { throw err; } if (user) { <del> res.redirect('/bonfires'); </del> <ins> debug('Saving user'); res.send(true) </ins> } }); } }); // Unique Check API route

return res.redirect('bonfires/meet-bonfire'); } var currentTime = parseInt(+new Date() / 1000); <del> if (currentTime - req.user.lastContentSync > 86400) { </del> <ins> if (currentTime - req.user.lastContentSync > 10) { </ins> req.user.lastContentSync = currentTime; var completed = req.user.completedBonfires.map(function (elem) { return elem._id;

} } }); <del> } if (allTestsPassed) { allTestsPassed = false; showCompletion(); </del> <ins> if (allTestsPassed) { allTestsPassed = false; showCompletion(); } </ins> } };

$('#complete-bonfire-dialog').modal('show'); // Only post to server if there is an authenticated user if ($('.signup-btn-nav').length < 1) { <del> $.ajax({ type: 'POST', data: { </del> <ins> $.post( '/completed-bonfire', { </ins> bonfireInfo: { completedWith : didCompleteWith, solution: bonfireSolution, bonfireHash: thisBonfireHash } }, <del> url: '/completed-bonfire/' }); </del> <ins> function(res) { if (res) { window.location.href = 'http://localhost:3001/bonfires' } }) </ins> } } <ins> $('.next-bonfire-button').on('click', function() { var bonfireSolution = myCodeMirror.getValue(); var thisBonfireHash = passedBonfireHash || null; var didCompleteWith = $('#completed-with').val() || null; completedBonfire(didCompleteWith, bonfireSolution, thisBonfireHash); }); </ins> $('.all-challenges').on('click', function() { $('#all-challenges-dialog').modal('show'); });

}); <del> $('.next-bonfire-button').on('click', function() { var bonfireSolution = myCodeMirror.getValue(); var thisBonfireHash = passedBonfireHash || null; var didCompleteWith = $('#completed-with').val() || null; completedBonfire(didCompleteWith, bonfireSolution, thisBonfireHash); window.setTimeout(function() { // TODO window.location = '/bonfires'; }, 100); }); </del> // Bonfire instructions functions $('#more-info').on('click', function() {


Question:
Challenge has an issue. User Agent is: <codeMozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:50.0) Gecko/ Firefox/50.0</code. Please describe how to reproduce this issue, and include links to screenshots if possible. There is inconsistent spelling in the instructions. Is it "inline" or "in-line"?
thanks for the issue. They should all be .

"description": [ "So we've proven that id declarations override class declarations, regardless of where they are declared in your style element CSS.", "There are other ways that you can override CSS. Do you remember inline styles?",  "Use an in-line style to try to make our h1 element white. Remember, in line styles look like this:",   "Use an inline style to try to make our h1 element white. Remember, in line styles look like this:",  "<h1 style="color: green">", "Leave the blue-text and pink-text classes on your h1 element." ],

"description": [ "Wir haben also gesehen dass Id Deklarationen die von Klassen überschreiben, egal wo sie in deinem style Element CSS stehen.", "Es gibt noch andere Wege CSS zu überschreiben. Erinnerst du dich an Inline Styles?",  "Benutze in-line style um dein h1 Element weiß zu machen. Vergiss nicht, Inline Styles sehen so aus:",   "Benutze inline style um dein h1 Element weiß zu machen. Vergiss nicht, Inline Styles sehen so aus:",  "<h1 style="color: green">", "Lasse die blue-text und pink-text Klassen auf deinem h1 Element." ]

"id": "bad87fee1348bd9aedf07756", "title": "Override All Other Styles by using Important", "description": [  "Yay! We just proved that in-line styles will override all the CSS declarations in your style element.",   "Yay! We just proved that inline styles will override all the CSS declarations in your style element.",  "But wait. There's one last way to override CSS. This is the most powerful method of all. But before we do it, let's talk about why you would ever want to override CSS.", "In many situations, you will use CSS libraries. These may accidentally override your own CSS. So when you absolutely need to be sure that an element has specific CSS, you can use !important",  "Let's go all the way back to our pink-text class declaration. Remember that our pink-text class was overridden by subsequent class declarations, id declarations, and in-line styles.",   "Let's go all the way back to our pink-text class declaration. Remember that our pink-text class was overridden by subsequent class declarations, id declarations, and inline styles.",  "Let's add the keyword !important to your pink-text element's color declaration to make 100% sure that your h1 element will be pink.", "An example of how to do this is:", "color: red !important;"


Question:
<!-- FreeCodeCamp Issue Template --<!-- Please provide as much detail as possible for us to fix your issue --<!-- Remove any heading sections you did not fill out --<!-- Insert link to challenge below -- <!-- Describe below when the issue happens and how to reproduce it --The challenge is designed to have the user check and return data based on using the current year. The challenge as it is written will only work when done correctly when the year is 2016. To pass the challenge properly, you have to write your code in a way that makes it seem as if it's 2016. My code below will pass the challenge, but it shouldn't require altering. I have placed comments above the piece I altered to make it pass despite that it is not 2016 still. Simply put: this challenge needs to be updated for 2017. <!-- Describe your workspace in which you are having issues--Browser information is most likely not relevant to the issue, but I will include in case. Google Chrome, Version: 55.0.2883.95 Operating System: Mac OS X Mobile, Desktop, or Tablet: Desktop, but this issue would impact all. <!-- If relevant, paste all of your challenge code in here --
Thank you for reporting this issue, we have already had a PR raised and merged to remove this challenge because of the headache it would cause each new year. Unfortunately the patch is only in our react version for FreeCodeCamp at the minute. can we push to production?
I will quickly make a PR for production as well, kind of a show stopper apparently.
This has been removed from or production branch as well. Please request your patience, while we update the website.

var isCompletedDate =  Math.round(+new Date() / 1000); var bonfireHash = req.body.bonfireInfo.bonfireHash; var isSolution = req.body.bonfireInfo.solution; <del> // TODO debug(isCompletedWith, 'Is completed with'); </del> if (isCompletedWith) { var paired = User.find({"profile.username": isCompletedWith}).limit(1);

throw err; } if (user && paired) { <del> res.redirect('/bonfires'); </del> <ins> res.send(true); </ins> } }) }); } }) } else { req.user.completedBonfires.push({ _id: bonfireHash, completedWith: null,

}) var index = req.user.uncompletedBonfires.indexOf(bonfireHash); if (index > -1) { req.user.uncompletedBonfires.splice(index,1) } req.user.save(function(err, user) { if (err) { throw err; } if (user) { <del> res.redirect('/bonfires'); </del> <ins> debug('Saving user'); res.send(true) </ins> } }); } }); // Unique Check API route

return res.redirect('bonfires/meet-bonfire'); } var currentTime = parseInt(+new Date() / 1000); <del> if (currentTime - req.user.lastContentSync > 86400) { </del> <ins> if (currentTime - req.user.lastContentSync > 10) { </ins> req.user.lastContentSync = currentTime; var completed = req.user.completedBonfires.map(function (elem) { return elem._id;

} } }); <del> } if (allTestsPassed) { allTestsPassed = false; showCompletion(); </del> <ins> if (allTestsPassed) { allTestsPassed = false; showCompletion(); } </ins> } };

$('#complete-bonfire-dialog').modal('show'); // Only post to server if there is an authenticated user if ($('.signup-btn-nav').length < 1) { <del> $.ajax({ type: 'POST', data: { </del> <ins> $.post( '/completed-bonfire', { </ins> bonfireInfo: { completedWith : didCompleteWith, solution: bonfireSolution, bonfireHash: thisBonfireHash } }, <del> url: '/completed-bonfire/' }); </del> <ins> function(res) { if (res) { window.location.href = 'http://localhost:3001/bonfires' } }) </ins> } } <ins> $('.next-bonfire-button').on('click', function() { var bonfireSolution = myCodeMirror.getValue(); var thisBonfireHash = passedBonfireHash || null; var didCompleteWith = $('#completed-with').val() || null; completedBonfire(didCompleteWith, bonfireSolution, thisBonfireHash); }); </ins> $('.all-challenges').on('click', function() { $('#all-challenges-dialog').modal('show'); });

}); <del> $('.next-bonfire-button').on('click', function() { var bonfireSolution = myCodeMirror.getValue(); var thisBonfireHash = passedBonfireHash || null; var didCompleteWith = $('#completed-with').val() || null; completedBonfire(didCompleteWith, bonfireSolution, thisBonfireHash); window.setTimeout(function() { // TODO window.location = '/bonfires'; }, 100); }); </del> // Bonfire instructions functions $('#more-info').on('click', function() {