What is the result of the following code if the HTML contains <p>1</p>? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 8

What is the result of the following code if the HTML contains <p>1</p>?

$("p").append ("2"); $("p").prepend ("1");

8th Sep 2020, 8:01 AM
Rashid Hussein
Rashid Hussein - avatar
2 Respostas
+ 4
Thanks most
8th Sep 2020, 8:27 AM
Rashid Hussein
Rashid Hussein - avatar
+ 1
112. 1(prepended) 1 2(appended)
8th Sep 2020, 8:05 AM
Divya Mohan
Divya Mohan - avatar