Skip to content

teotimepacreau/JSON-Exercices-Day35-of-100DaysOfCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

JSON Exercices from #30DaysOfJavascript

https://github.com/Asabeneh/30-Days-Of-JavaScript/blob/master/16_Day_JSON/16_day_json.md

Learned

  • basic JSON structure : double quotes
  • change JSON to object with JSON.parse()
  • parse parameters JSON.parse(usersText, (key, value) => { let newValue = typeof value == 'string' && key != 'email' ? value.toUpperCase() : value return newValue })
  • change something JS in JSON with JSON.stringify(obj, replacer, space)//The replacer is used as filter and the space is an indentations. If we do not want to filter out any of the keys from the object we can just pass undefined.

🛠️

Vanilla Javascript

Releases

No releases published

Packages

No packages published