javascript - Strange result when comparing properties -


could please explain me following. trying compare object attributes: newname of v , rowdata objects. got values report3 , report2, on comparison (rowdata.newname === v.newname) these values equal??!! please refer console message below

values strings, belong different objects.

 console.log('== new name of vale of table =='); console.log(v.namenew); // report3 console.log('== new name of data of row =='); console.log(rowdata.namenew); // report2 console.log('== idiot proof test '); console.log(rowdata.newname === v.newname); 

console log:

 == new name of vale of table == report3 == new name of data of row == report2 == idiot proof test true 

not sure if mistyped log

console.log(v.namenew); 

you compare

v.newname 

if made mistake , comparing right variables, can post more code (how declaring them , assigning them)


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -