Which step of lifecycle is the code inside SFC <script> tag executed in?

For example, there executes the method fetchData() in SFC <script> tag in the tutorial Watchers. I want to know which step of lifecycle this method is executed in.

I might have found out the answer myself: ‘mounted’. Because the Options API edition of that tutorial uses mounted() to execute the method fetchData().

Sorry, I was wrong.
According to the official documentation:

Note that the setup() hook of Composition API is called before any Options API hooks, even beforeCreate().