0

how to solve this

hi i tried to solve this and seems not to work

23rd Nov 2016, 1:25 PM
Jacob Kamau
Jacob Kamau - avatar
4 odpowiedzi
+ 4
var par= document.getElementById("par"); var node= document.getElementById ("node"); par.removeChild.(node);
23rd Nov 2016, 1:35 PM
Jacob Kamau
Jacob Kamau - avatar
+ 2
var par= document.getElementById("par"); var node= document.getElementById ("node"); par.removeChild(node);
23rd Nov 2016, 2:31 PM
Aditya kumar pandey
Aditya kumar pandey - avatar
+ 1
In code you have dot after removeChild on the third line. That is wrong. Anyway 'node' have to be child of 'par'...
23rd Nov 2016, 2:05 PM
Ondřej Doněk
Ondřej Doněk - avatar
0
var par= document.getElementById("par"); var node= document.getElementById ("node"); par.removeChild.(node); this is actually the correct answer
24th Oct 2018, 4:10 PM
Samuel Usen
Samuel Usen - avatar