JavaScript code
p1
p2
p3
Result