How to add JS code to a templates within a theme

I created a page with the theme.
I want to add some JS code to it.
When I open the code, all I see is the page.####.json file, so I don’t know where and how to plug in the js code.
If anyone knows, please reply.

Hi @uuuuuofficial

You can add wrap your code into this.


And then add it to your theme.liquid file, place the code above tag