Dawood Abbas

Dawood Abbas

  • NA
  • 264
  • 95.3k

can we write same variable names in different scripts in jsp

Nov 2 2015 4:40 AM
 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>