In this project I'm converting the answers that are given to the question: 'What is your favorite day of the week'. The answers are given in numbers and I'm converting these numbers to actual days. For the survey participants that didn't answer this question a 'No input' answer will be given.
Right now I'm using a 'hack' given by Robert and Laurens I retrieve the data using a JSON file and store that JSON into a function to return the data. Eventually I will use the map and filter object to search through the data. I will be searching through the data using a variable where the 'search action' will be stored. The data will eventually be pushed into an array using a for loop and a push method.
To convert the values to actual days I'm using a switch case in where the cases are tested and converted.
In the first week we will be experiment with functional patterns using the CMD students dataset. I've chose to clean up the favorite day of the week column.
Navigate to the desired directory in your terminal:
cd desktop
Once you've reached the desired directory paste the following code in your terminal:
git clone https://github.com/benl95/functional-programming.git
You can now open index.html and open the console to check the array in which the survey answers are stored.
People that helped:
Jonah Meijers and Vincent van Leeuwen (switch case)
Laurens Aarnoudse and Robert Spier (Importing JSON data and searching through the data)
How sustainable is the population of the Netherlands driving?
How sustainable are the population of the Netherlands driving?
What is the compositon of the dutch fleet?
How sustainable are the fossil fuel vehicles in The Netherlands?
What is the most common car in the Netherlands and is this car sustainable?