_______
/ \
| Start |
\_______/
|
v
________________
/ User clicks \
| button (event) |
\________________/
|
v
____________________
/ JavaScript detects \
| the click event |
\__________________/
|
v
____________________
/ Run function to \
| change text on page |
\__________________/
|
v
____________________
/ Text on page is \
| updated |
\__________________/
|
v
_______
/ \
| End |
\_______/ This flowchart starts with the user clicking a button on the webpage, which is the input event. JavaScript detects this click event and then runs a function. The function changes the text on the page, which is the output. Finally, the flowchart ends after the text is updated. Each step is represented by standard flowchart symbols: ovals for start/end, parallelograms for input/output, and rectangles for processing steps.