Run
Online Code Editor
It is an example of using the last() method.
div element
This is a paragraph
Second paragraph element
Heading h3
Another paragraph element
Click the following button to get the last paragraph element.
Click me