From da01301918ee46522c0600968b3281e633e79e4e Mon Sep 17 00:00:00 2001 From: Marie Malarme Date: Thu, 4 Mar 2021 15:19:03 +0000 Subject: [PATCH] get-them-all: make instructions more precise --- subjects/get-them-all/README.md | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/subjects/get-them-all/README.md b/subjects/get-them-all/README.md index 9e557104..c5e5671e 100644 --- a/subjects/get-them-all/README.md +++ b/subjects/get-them-all/README.md @@ -10,24 +10,26 @@ Step by step, with the little information you have, gather information and figur Launch the provided HTML file in the browser to begin your investigation.
On top of the webpage, each of the four buttons fires a function: -- Write the body of the `getArchitects` function, which returns an array containing 2 arrays: - - the first array contains the architects, all corresponding to a `` tag +- Write the body of the `getArchitects` function, which returns an array containing 2 arrays of HTML elements: + + - the first array contains the architects, all corresponding to a `` tag - the second array contains all the non-architects people -- Write the body of the `getClassical` function, which returns an array containing 2 arrays: +- Write the body of the `getClassical` function, which returns an array containing 2 arrays of HTML elements: + - the first array contains the architects belonging to the `classical` class - the second array contains the non-classical architects -- Write the body of the `getActive` function, which returns an array containing 2 arrays: +- Write the body of the `getActive` function, which returns an array containing 2 arrays of HTML elements: + - the first array contains the classical architects who are `active` in their class - the second array contains the non-active classical architects -- Write the body of the `getBonannoPisano` function, which returns an array containing: +- Write the body of the `getBonannoPisano` function, which returns an array containing: - the HTML element of the architect you're looking for, whose `id` is `BonannoPisano` - - an array which contains all the remaining active classical architects + - an array which contains all the remaining HTML elements of active classical architects -> From now on, don't forget to [**export**](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/export) all the expected functions, so that they can be imported to be tested
-> `export const getArchitects = () => {...}` +> From now on, don't forget to [**export**](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/export) all the expected functions, so that they can be imported to be tested
> `export const getArchitects = () => {...}` ### Notions