Hi folks, is there any official technical documentation for the freeCodeCamp project, e.g. which part does what.
hbar1st
November 11, 2024, 6:12am
2
Are you asking about documentation for something specific ?
I’m asking about documentation. For example, when I was trying to fix a bug which needs to change the validation for user inputs. I can’t find where the code located.
hbar1st
November 11, 2024, 1:39pm
4
which issue are you working on?
The full contributing guidelines for fcc have already been shared with you I think.
These are all the documentation for the project.
Hi thanks for the reply. The issue I’m working on is #57099
opened 12:57PM - 08 Nov 24 UTC
scope: curriculum
status: waiting triage
### Describe the Issue
In the Data Visualization course, specifically in the se… ction where `fetch` is introduced, the example code provided does not mention that `GET` is the default HTTP method for `fetch`.
This might lead to confusion for learners, as the test currently expects `fetch('/json/cats.json')` without an explicit `{ method: "GET" }` option.
However, many learners may choose to specify `{ method: "GET" }` explicitly, which the test does **not** currently accept.
### Affected Page
https://www.freecodecamp.org/learn/data-visualization/json-apis-and-ajax/get-json-with-the-javascript-fetch-method
### Your code
```js
fetch('/json/cats.json', { method: "GET" })
.then(response => response.json())
.then(data => {
document.getElementById('message').innerHTML = JSON.stringify(data);
});
```
### Expected behavior
- Accept `{ method: "GET" }` as a valid solution, **OR** Clarify in the course instructions that `GET` is the default HTTP method for `fetch`.
### Screenshots
_No response_
### System
- Device: [Laptop]
- OS: [Windows 11]
- Browser: [Chrome]
- Version: [130.0.6723.117]
### Additional context
The current course example uses:
```js
fetch('/json/cats.json')
.then(response => response.json())
.then(data => {
document.getElementById('message').innerHTML = JSON.stringify(data);
});
```
Adding a note in the instructions to clarify the default behavior of `fetch`, or updating the test to allow `{ method: "GET" }` explicitly, would enhance clarity for learners and align with common practices in real-world coding.
I’m still searching for which part of the code does the user input validation (checking if the leaner’s input is correct). So learner’s answer will be correct for either with or without GET method specified.
hbar1st
November 11, 2024, 9:36pm
6
have you read ilenia’s reply to you on github?
opened 12:57PM - 08 Nov 24 UTC
scope: curriculum
status: waiting triage
### Describe the Issue
In the Data Visualization course, specifically in the se… ction where `fetch` is introduced, the example code provided does not mention that `GET` is the default HTTP method for `fetch`.
This might lead to confusion for learners, as the test currently expects `fetch('/json/cats.json')` without an explicit `{ method: "GET" }` option.
However, many learners may choose to specify `{ method: "GET" }` explicitly, which the test does **not** currently accept.
### Affected Page
https://www.freecodecamp.org/learn/data-visualization/json-apis-and-ajax/get-json-with-the-javascript-fetch-method
### Your code
```js
fetch('/json/cats.json', { method: "GET" })
.then(response => response.json())
.then(data => {
document.getElementById('message').innerHTML = JSON.stringify(data);
});
```
### Expected behavior
- Accept `{ method: "GET" }` as a valid solution, **OR** Clarify in the course instructions that `GET` is the default HTTP method for `fetch`.
### Screenshots
_No response_
### System
- Device: [Laptop]
- OS: [Windows 11]
- Browser: [Chrome]
- Version: [130.0.6723.117]
### Additional context
The current course example uses:
```js
fetch('/json/cats.json')
.then(response => response.json())
.then(data => {
document.getElementById('message').innerHTML = JSON.stringify(data);
});
```
Adding a note in the instructions to clarify the default behavior of `fetch`, or updating the test to allow `{ method: "GET" }` explicitly, would enhance clarity for learners and align with common practices in real-world coding.
You were told that the issue is not open for contribution and you were provided with a link to the file that contains the tests if you still wanted to look at the code anyway.
I double checked, thanks. Got a bit confused when trying to contribute in the first time.
1 Like