5.4 Task 8 Review
From Day 22
8-1.
g
element is agroup
element. It is an SVG element, just likeline
,circle
, andrect
. One thing different is thatg
element is invisible. It serves two functions:Helps us group other elements;
Accepts transformations onto it, which is very handy.
8-7.
for (var i = 0; i < 50; i++){}
. Two points to remember:It should be
var i = 0
, rather than simplyi = 0
;Seperate the codes inside the bracket by
;
, not,
.