Use Session Variable in Javascript

I have a javascript function in which i want to set emailId = session variable

This works but

<script type="text/javascript">
        function openCheckout3() {
    		Paddle.Checkout.open(
                { 
                product: 24102,
                email:"abc@gmail.com"
                }
             );
    	}    	
    </script>

When i try to set the email from session variable it does not work

<script type="text/javascript">
        function openCheckout3() {
    		Paddle.Checkout.open(
                { 
                product: 1000,
                email:"session1.data.emailId"
                }
             );
    	}    	
    </script>

What am i doing wrong?
Thanks

Community Page
Last updated: