0
Reply

can we write same variable names in different scripts in jsp

Dawood Abbas

Dawood Abbas

Nov 2 2015 4:40 AM
534
 can we write same variable names in different scripts in javascript?
Like below 
 
<script type="text/javascript">
$(document).ready(function () {
var userCookie = getCookie('loggedInUser');
});
</script>
 
<script type="text/javascript">
$(document).ready(function () {
var userCookie = getCookie('loggedInUser');
}); 
</script>