How to inject variables into public-facing JS using wp_enqueue_script

How to inject variables into public-facing JS using wp_enqueue_script