Error in Quiz "stretch"?


#1

In the quiz after Disenfectant with the eyedropper and bacteria… I think it’s called “stretch.” The quiz asks how many circles will the code draw. I chose 0 because there was nothing that actually draws any circles… Just defines a variable. I was told my answer was wrong because no function was run to remove circles. However no function was set forth to draw one either? Obvious I am new at this… Am I correct?


#2

How many circles will be displayed, based on the code below? 0, 1, or 2?

var first = svg.append('circle').attr('r',100).attr('fill','red');
var second = svg.append('rect');
function moreCircles() {
    first.remove();
}

The 1st line will create a red circle with radius 100, centered at the top left corner.
The 2nd line will create a rectangle with no color or size, with it’s top left corner in the top left corner of the screen.
The function moreCircles has a misleading name. If it was ever called, it would remove the circle created in the 1st line.

In the end, line 1 does create a circle with the append() function, and it is never removed.

–Frankie