how can we define global and local variable with same name in js in jquery code example Example: jquery global variable window.varName