javascript - Why assigning a variable to itself memory=memory? -


i analysing javascript shell-code. here line script:

function having() {     memory = memory;     settimeout("f0vtp03y()", 2000); } 

i don't quite understand memory = memory, what's point of assigning variable itself. appreciate help!

the reason can think of assign variable variable shadowing.

variable shadowing occurs when variable declared within scope (decision block, method, or inner class) has same name variable declared in outer scope. @ level of identifiers (names, rather variables), known name masking. outer variable said shadowed inner variable, while inner identifier said mask outer identifier. can lead confusion, may unclear variable subsequent uses of shadowed variable name refer to, depends on name resolution rules of language.

but in case, memory variable not parameter of function doesn't make sense.


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -