how to give javascript variable to my liquid file to render product data

Hello @satykumar36 ,

It’s not possible to directly use a JavaScript variable inside a Liquid.

What the alternative solution can we use any API for that, if yes then if i sell my theme to any user then he have to change shopify frontend API key from code. Suggest the correct way.