This repository includes a text file in JavaScript Object Notation (JSON) format, myself.json, and the same code between two <script>
tags of an html file, myself.html. The purpose of this repository is to practise writing JSON syntax, defining JavaScript objects and accessing those objects with JavaScript methods.
I used myself as the basis for this project, thus the titie. I used my curriculum vitae as an aid to express my profile (summary, skills, education and interests) as key–element pairs that each hold a datum or an array of data.
Beyond returning object properties, this JavaScript code makes use of a ternary if statement1, JSON's stringify
function2 and the JavaScript string methods toLowerCase()
3 and replace()
2.
1: (aC.skills.istqb ? "ISTQB certified." : "Not ISTQB certified.")
.
2: JSON.stringify(aC.education.sixthForm.aLevels).replace('{','<ul type="circle"><li>').replace('}','.</ul>').replace(/\"/g,'').replace(/,/g,';<li>').replace(/\:/g,': ')
.
3: aC.hobbies.sports[1].toLowerCase()
.