Accessing URL query parameter from code component

Hi team, I have a pretty beginner question, how can I access url query parameter from a code component?

solved