Long description

Back

The JavaScript code is as follows: Line 1: const options equals paintings dot map open parenthesis p arrow open backtick open angle bracket l i close angle bracket dollar open curly brace p dot title close curly brace open parenthesis dollar open curly brace p dot artist close curly brace close parenthesis open angle bracket forward slash l i close angle bracket close backtick close parenthesis semicolon. Note: This function will be called for each element in the array forward slash. p is labeled It will return a string containing a transformation of each array element. An arrow will generate this new array from options in line 1 to the set of H T M L code.

The set of H T M L code consists of seven lines of code. Line 1 at indentation level 0: open square bracket. Line 2 at indentation level 1: open double quotes open angle bracket l i close angle bracket Girl with a Pearl Earring open parenthesis Vermeer close parenthesis open angle bracket forward slash l i close angle bracket close double quotes comma. Line 3 at indentation level 1: open double quotes open angle bracket l i close angle bracket Artist Holding a Thistle open parenthesis Durer close parenthesis open angle bracket forward slash l i close angle bracket close double quotes comma. Line 4 at indentation level 1: open double quotes open angle bracket l i close angle bracket Wheatfield with Crows open parenthesis Van Gogh close parenthesis open angle bracket forward slash l i close angle bracket close double quotes comma. Line 5 at indentation level 1: open double quotes open angle bracket l i close angle bracket Burial at Ornans open parenthesis Courbet close parenthesis open angle bracket forward slash l i close angle bracket close double quotes comma. Line 6 at indentation level 1: open double quotes open angle bracket 1i close angle bracket Sunflowers open parenthesis Van Gogh close parenthesis open angle bracket forward slash l i close angle bracket close double quotes. Line 7 at indentation level 0: close square bracket semicolon.

There is an arrow starting from JavaScript set line 1 open double quotes options close double quotes to this code block labeled which will generate this new array forward slash.

Back