js does append work in O(1) code example Example: jquery append $("p").append(" <b>Appended text</b>.");