To practice creating, using, and referencing JSON data in JavaScript, BOTH team members will complete the following steps below using the branch naming convention firstname-json.
Create an Issue ticket in GitHub to lay out the steps you'll need to take in order to convert your virtual pet options (the pets available for gameplay) into a JSON file.
Create your OWN branch using the naming convention above.
Convert your data into JSON format in its own file with the .json file extension.
Using a require statement (or require function), assign the contents of the file to a variable. Remember best-practice for your variable declaration.
Adjust any references to your previous data by refactoring to use your new variable.
Push up YOUR branch.
Create a PR to main and submit the link to your PR in a DM directly to me. NOTE: This is NOT the link to your repository. The PR has its own link.
As partners, choose ONE refactor to merge into main and leave the other open for now.
Lab 1 -- Converting Data to JSON
To practice creating, using, and referencing JSON data in JavaScript, BOTH team members will complete the following steps below using the branch naming convention
firstname-json
.Create an Issue ticket in GitHub to lay out the steps you'll need to take in order to convert your virtual pet options (the pets available for gameplay) into a JSON file.
Create your OWN branch using the naming convention above.
Convert your data into JSON format in its own file with the
.json
file extension.Using a
require
statement (orrequire function
), assign the contents of the file to a variable. Remember best-practice for your variable declaration.Adjust any references to your previous data by refactoring to use your new variable.
Push up YOUR branch.
Create a PR to main and submit the link to your PR in a DM directly to me. NOTE: This is NOT the link to your repository. The PR has its own link.
As partners, choose ONE refactor to merge into main and leave the other open for now.