How to Get Post Meta in .Js File [duplicate]

i have post meta named ‘product_price’. If this post meta is called in php it can be written:

<?php echo get_post_meta($  post->ID, 'product_price', true); ?> 

How to get this post meta ‘product_price’ in themedir/js/script.js file?

Please help me masters. thank you