What's wrong with this code?

There are no parent and child IDs setThe instructions create elements instead of removing themThe instructions remove the parent from the childThere are no parent elements

There are no parent and child IDs set.