can we write same variable names in different scripts in javascript?
Like below
$(document).ready(function () {
var userCookie = getCookie('loggedInUser');
});$(document).ready(function () {
var userCookie = getCookie('loggedInUser');
});

Replies
Know the answer? Post it — somebody with the same question will find it here.