0

JS question insertRow vs appendChild

In the recent Matrix assignment, I used insertRow() and inserCell() to allow the user to redimension the matrix table. My question is: Out of curiosity, is this better, worse or no different to using appendChild()? Any feedback would be welcome. Mark.

10th Dec 2018, 2:20 PM
Mark
4 Answers
+ 4
Because the row can be completely filled out before being added. It fits the way I think about tables better.
11th Dec 2018, 1:23 PM
John Wells
John Wells - avatar
+ 1
Here are some experts talking about it. I always use appendChild. https://stackoverflow.com/questions/879563
10th Dec 2018, 6:24 PM
John Wells
John Wells - avatar
+ 1
Thanks for the interesting link, John. Out of interest, why do you prefer appendChild?
11th Dec 2018, 7:41 AM
Mark
+ 1
That makes sense. thanks.
11th Dec 2018, 2:01 PM
Mark