menu-button
×

Records

Task 1: JSON basics A - Selecting Fields

In the already provided code, you are provided the information about a person. Print out the name and age of this person.

Reset to Original Code     Fullscreen

Task 2: JSON basics B - Creating a JSON

Create a JSON that contains information about an item in a shop. Your should include at least one textual and one numeric field. Then print out the fields within your JSON.

Reset to Original Code     Fullscreen

Task 3: For Loops 1

Use a for loop to search through a list of JSONs, and print the name of any item whose price is above 20p. Some of the code has been written for you.

Reset to Original Code     Fullscreen

Task 3b: For Loops 2

Use a for loop to find the total cost of the items in the items array.

Reset to Original Code     Fullscreen

Task 3c: For Loops 3

Input a letter from the console. Then output a list of all items with prices which start with that letter.

Reset to Original Code     Fullscreen